Currently I am working on WPF with MVVM patern. I created one sample apps like this
View
------
ViewModel
--------------
public Student Student
{
get
{
return _student;
}
set
{
_student = value;
NotifyPropertyChanged("Student");
}
}
Model
--------
public class Student
{
public string Name { get; set; }
}
Can you please any one explain about how to validate a property for example "Name"
We have to apply validation rule in ViewModel or Model level.
Replies
Know the answer? Post it — somebody with the same question will find it here.