How to determine if an edit has taken place after BeginEdit() called??

How to determine if an edit has taken place after BeginEdit() called??

Old forum URL: forums.lhotka.net/forums/t/10314.aspx


Devman posted on Thursday, April 28, 2011

Hi,

Is there a way to tell whether an object has been edited after BeginEdit() has been called? The object may already be Dirty when BeginEdit is called so I cant check that.

I haven't seen a way to do this and  I need to be able to enable/disable an "Undo" button which calls CancelEdit to roll back changes by an undo level.

Regards

David

RockfordLhotka replied on Thursday, April 28, 2011

There's nothing that tracks changes at that granularity, no.

You can probably add your own implementation though, because (iirc) you can override PropertyHasChanged to add your own alternate change tracking.

Copyright (c) Marimer LLC