user3428422
user3428422

Reputation: 4560

Methods of validation in WPF, MVVM

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

Answers (1)

GrzegorzM
GrzegorzM

Reputation: 842

I would suggest implementing INotifyDataErrorInfo or IDataErrorInfo (.NET < 4.5).

Question about INofiryDataErrorInfo: SO INotifyDataErrorInfo

Article about IDataErrorInfo: IDataErrorInfo

Upvotes: 2

Related Questions