Reputation: 4560
I have been told there are many ways you can do validation in WPF + MVVM that belong in the ViewModel. What is the best (good) method of doing validation? Any links or examples would be helpful.
Thanks.
Upvotes: 0
Views: 104
Reputation: 842
I would suggest implementing INotifyDataErrorInfo or IDataErrorInfo (.NET < 4.5).
Question about INofiryDataErrorInfo: SO INotifyDataErrorInfo
Article about IDataErrorInfo: IDataErrorInfo
Upvotes: 2