This is my model:
class Person : INotifyPropertyChanged
{
public static int Counter;
public string _firstName;
public string _lastName;
public event PropertyChangedEventHandler PropertyChanged;
public string FirstName
{
get {return _firstname; }
set
{
_fileName = value;
NotifyPropertyChange("FirstName");
}
}
public AddPerson(Person person)
{
Counter++;
}
}
I have this NotifyPropertyChange that changed all my Persons properties inside my ListView and i want to add the Counter field that hold the number of Objects that i have.
So is it possible to add another PropertyChanged Event for my static variable ?