0

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.

user3428422
  • 4,300
  • 12
  • 55
  • 119

1 Answers1

2

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

Question about INofiryDataErrorInfo: SO INotifyDataErrorInfo

Article about IDataErrorInfo: IDataErrorInfo

Community
  • 1
  • 1
GrzegorzM
  • 842
  • 8
  • 19