I am trying to disable or make read only some properties at run time based on when a check box is checked and I'm having some trouble figuring out the best way to accomplish this. My SelectedObjects is bound to a large main Object, call it mainObj. Inside mainObj there is a smaller object, called subObj. Inside subObj is the checkbox property.
When this checkbox property is checked, I want to disable all other properties in subObj only except for the one checkbox while not touching any of the properties in mainObj. The main problem I am seeing is all of the properties are being generated dynamically using attributes on the property names. There is no xaml for these properties, there is just the one control that creates the PropertyGrid.
Is there a good way to accomplish this?