Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

PropertyHasChanged / MarkDirty

$
0
0

I'm using CSLA 4.5.501 from NuGet w/WPF.

In Rocky's eBook Creating Business Objects the MarkDirty Method says:
"By default this method not only effectively set IsSelfDirty to true, it also raises the PropertyChanged event with a property of string.Empty.  This tells the data bining to refresh the bindings on all the properties of the object, ensuring that the UI is up to date based on any changes that were committed to the object's state or metastate."

This is the behavior that I want, but when I change a text field on my model and step through in the debugger, only the Getters of the Affected properties are called.   Specifically I want a CSLA Property that accesses the metadata (IsDirty, IsValid, broken rules, etc.) to be updated in the UI when any of my read / write Properties are changed.

Has something changed since the book was written and if so, how do I get the behavior above?

Ray.


Viewing all articles
Browse latest Browse all 764

Trending Articles