December 2019
Intermediate to advanced
528 pages
11h 19m
English
XAML works by rerendering the screen when it is necessary to do so. In the case of WPF and UWP, this means that we need to tell it that something has changed, and we do that by implementing a method on the INotifyPropertyChanged interface called OnPropertyChanged:
public void OnPropertyChanged([CallerMemberName] string propertyName = null){ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));}
When this is called, it rerenders the aspect of the screen that is bound to whatever property is passed in.