In my program, some time i need to disable some propertyDefinition, when the propertyDefinition has NestedProperties, i also need disable the expand to prevent user open or close the expander
i try to set the IsEnable propetry as this code
var expanderButtons= myRadPropertyGrid.ChildrenOfType<RadToggleButton>().Where(b => b.Name == "PART_NestedPropertiesButton").ToList();
expanderButtons.ForEach(t => t.IsEnabled = false);
it is ok at the beginning but when in the case as follows is not
1.when close or open the properties group;
2.when call the NestedProperties.Reset() method
3. when switch the propertyGrid to another one and then switch back
it seems this method can't be done after the second render
how to achieve this?
thank you