문제

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 well?

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top