loop over all properties in viewmodel

Topics: Questions
Oct 8, 2013 at 11:14 AM
Edited Oct 8, 2013 at 11:15 AM
Hello.

All properties are registered in the viewmodelbase. So is it possible to loop loop over all properties, and do something with these properties.
Oct 8, 2013 at 6:15 PM
var properties = PropertyDataManager.Default.GetProperties(typeof(MyViewModelType));
foreach (var property in properties)
{
    // do something
}
Oct 9, 2013 at 6:57 AM
Cannot access internal property 'PropertyDataManager" here
Oct 10, 2013 at 6:56 AM
Marked as answer by GeertvanHorrik on 10/25/2013 at 4:51 AM