GetWrapperProperties && Collections

Aug 30, 2010 at 7:02 PM

It *looks* like the reflection used to determine IsDirty would be useless in the case of some sort of IEnumerable property (likely an ObservableCollection), as it seems it would have the effect of putting a reference to the collection which would never show it as Dirty even if the collection changed (because the stored state in the dictionary will have changed too). Please correct me if I am wrong.

Assuming I am not wrong about this, I am wondering if the Cinch answer to this is to always use Workspaces (I haven't looked closely enough at the Cinch implementation to know) or something else. In any case it would seem better to either ignore collections as part of stored state, or better yet have a default snapshot type of method that could be overridden.

Cheers,  

Berryl

 

 

Coordinator
Aug 31, 2010 at 12:23 PM

Yeah DataWrapper is only really meant to wrap stuff you would normally bind to a TextBox, so things like Int/string/double etc etc.

Aug 31, 2010 at 2:44 PM

Is there any Cinch framework support for dirty checking on collections then? Thanks for the quick reply!

 

Coordinator
Aug 31, 2010 at 4:29 PM

No Cinch does not offer any IsDirty support for collections. Sorry