The PropertyGrid uses only a clone of the source properties as its SelectedObject – it only changes the source properties when OK is clicked.
The Property defined at the Top level of the properties class behaves as expected, i.e. the clone version of the properties is used for the change and the change is discarded if Cancel is clicked.
The nested Property seems to be set in the “real” version of the properties immediately upon the change in the UI, despite the clone being used as the selected object.
I would be most grateful for:
- Advice on how to make the nested Property behave as expected; i.e. only change within the clone, not the real properties
- Any improvements in how to refresh the UI after a Cancel – at the moment what I’m doing seems very clunky
Comment