If I have a form with controls DataBound to an instance variable object, is there a way to do revert changes that the user made, possibly by doing something like:
myLocalObject = DataLayer.GetCurrentState();
and have the form’s controls (bound to myLocalObject) automatically pick up the changes?
Thanks!
I’ve found that the following does the trick:
For some reason, if I don’t set DataContext to null, my bound controls don’t pick up the changes when changes are reverted.