Skip to Content
C# 8 and .NET Core 3 Projects Using Azure - Second Edition
book

C# 8 and .NET Core 3 Projects Using Azure - Second Edition

by Paul Michaels, Dirk Strauss, Jas Rademeyer
December 2019
Intermediate to advanced
528 pages
11h 19m
English
Packt Publishing
Content preview from C# 8 and .NET Core 3 Projects Using Azure - Second Edition

OnPropertyChanged

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.

CallerMemberName was introduced back in .NET 4.5 and it allows you to reference the name of the caller without explicitly defining it at design time. That is, if we change the name of one of the properties, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Enterprise Application Development with C# 9 and .NET 5

Enterprise Application Development with C# 9 and .NET 5

Ravindra Akella, Rishabh Verma, Arun Kumar Tamirisa, Suneel Kumar Kunani, Bhupesh Guptha Muthiyalu
ASP.NET Core 2 and Angular 5

ASP.NET Core 2 and Angular 5

Valerio De Sanctis, Jürgen Gutsch
ASP.NET Core 5 for Beginners

ASP.NET Core 5 for Beginners

Andreas Helland, Vincent Maverick Durano, Jeffrey Chilberto, Ed Price

Publisher Resources

ISBN: 9781789612080Supplemental Content