please any one explain this INotifyPropertyChanged in MVVM

Posted by Gow.Net under WPF on 8/10/2012 | Points: 10 | Views : 1780 | Status : [Member] | Replies : 0
public  class NodeDetails:INotifyPropertyChanged 
{
private string _AvailableNodes;

public string AvailableNodes
{
get { return _AvailableNodes; }
set { _AvailableNodes = value; }
}

public event PropertyChangedEventHandler PropertyChanged;
public void OnPropetyChanged(string propertyname)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyname));

}


}


i need explanation for below code

    public event PropertyChangedEventHandler PropertyChanged;
public void OnPropetyChanged(string propertyname)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyname));

}


gowthaman8870226416


Responses

(No response found.)

Login to post response