I noticed a few posts/requests regarding a general PropertyChanged event that could be subscribed to and saw that it was on the TODO list. So first, please add me to the list of people who would appreciate this feature.
I am hoping there is a way to work around this event not being included in the control. I am writing a form designer and the 'SelectedObjects' property will be filled with various form elements such as buttons, labels, images, etc. What I am trying to implement is an 'Undo / Redo' system so that if 5 buttons and 5 labels are selected, and the 'Height' property is modified on all selected objects, I can save before and after snapshots of the selected objects. So ideally the workflow would be like this:
1) PreviewPropertyChanged event fires - save snapshot of selected objects before their Heights are changed
2) Changes to Height are applied to the SelectedObjects
3) PropertyChanged event fires - save snapshot of selected objects after their Heights are changed
I know that I can listen for changes on individual items, but I really need to group this 'mass' change into a single 'unit of work' so it can be undone and redone as a single operation.
Any suggestions on overcoming this problem would be greatly appreciated.
I am hoping there is a way to work around this event not being included in the control. I am writing a form designer and the 'SelectedObjects' property will be filled with various form elements such as buttons, labels, images, etc. What I am trying to implement is an 'Undo / Redo' system so that if 5 buttons and 5 labels are selected, and the 'Height' property is modified on all selected objects, I can save before and after snapshots of the selected objects. So ideally the workflow would be like this:
1) PreviewPropertyChanged event fires - save snapshot of selected objects before their Heights are changed
2) Changes to Height are applied to the SelectedObjects
3) PropertyChanged event fires - save snapshot of selected objects after their Heights are changed
I know that I can listen for changes on individual items, but I really need to group this 'mass' change into a single 'unit of work' so it can be undone and redone as a single operation.
Any suggestions on overcoming this problem would be greatly appreciated.