WPF: Bind to each value of a property generated via reflection in ObservableCollection
I have a large list of objects, we'll call the object SpecialData, with ~60 properties on it. I created a class to represent each property in the UI like so (using MVVM toolkit hence the attributes):
In my viewmodel, I get all the attributes of the
Now in the UI, I want to show each property and its corresponding value for whatever my selected item is in the list of
In my viewmodel, I get all the attributes of the
SpecialData class and map them to a collection of CheckableProperty objects like so:Now in the UI, I want to show each property and its corresponding value for whatever my selected item is in the list of
SpecialData objects. Right now I am doing this every time I select a different item to show the properties of: