chakkaradeep
September 22nd, 2007, 02:28 AM
Hi,
I just started exploring WPF Data Binding. Though I know to implement a simple data binding, but I want to understand what actually the INotifyPropertyChanged's event handler - PropertyChangedEventHandler code does.
protected void OnPropertyChanged(String name)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(name));
}
}
I want to know more what happens in the red text in the above code
I would be happy if anyone could explain me :)
Thanks
I just started exploring WPF Data Binding. Though I know to implement a simple data binding, but I want to understand what actually the INotifyPropertyChanged's event handler - PropertyChangedEventHandler code does.
protected void OnPropertyChanged(String name)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(name));
}
}
I want to know more what happens in the red text in the above code
I would be happy if anyone could explain me :)
Thanks