Hi all,
I'm implementing INotificationPropertyChanged
Action act = new Action ();
public Action Action
{
get { return act; }
set
{
if (value == act)
return;
act = value;
OnPropertyChanged("Action");
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string propertyName)
{
var handler = PropertyChanged;
if (handler == null)
return;
handler(this, new PropertyChangedEventArgs(propertyName));
}
and updating class object;
Action=new Action();
Action=SomeList.FirstOrDefault();
after this statement loop entering into OnPropertyChanged but PropertyChanged event value is returning null, and not updating the property.
do I need to initialize PropertyChanged event anywhere, please help me