开发者

MVVM-Light PropertyChanged ViewModelBase

开发者 https://www.devze.com 2023-01-13 17:48 出处:网络
I would like to understand how the MVVM light toolkit raises the PropertyChanged event. I have a feeling that this may be obvious... but I can\'t satisfy my curiousity without 100% clarity!

I would like to understand how the MVVM light toolkit raises the PropertyChanged event.

I have a feeling that this may be obvious... but I can't satisfy my curiousity without 100% clarity!

I know that this event is raised for each RaisePropertyChanged called, but I'm confused as to why PropertyChanged is raised when the HasValidationErrors property is changed as we开发者_JS百科ll?

Thanks, Richard


When it comes to ViewModels or any class that implements INotifyPropertyChanged it is part of the contract that every property should raise the event when the property value changes. This way there is no unexpected behavior.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号