Implementation von INotifyPropertyChanged (c#)

Posted . Visible to the public.

Beispiel-Implementation:

public event PropertyChangedEventHandler PropertyChanged;

protected virtual void NotifyPropertyChanged([CallerMemberName] string propertyName = null) {
	PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
Stephan Blaurock
Last edit
Stephan Blaurock
Posted by Stephan Blaurock to Programming KB (2018-04-10 15:05)