API

INotifyPropertyChanged.PropertyChanged

Notifies subscribers of a property change. Assign the new value before raising the event; choose an explicit equality policy and notify dependent properties where necessary. No automatic UI-thread dispatch is implied.

Formal Syntax & Structure

csharp syntaxcsharp
model.PropertyChanged += handler;

Working Example

Example Snippetcsharp
using System;using System.ComponentModel;using System.Collections.ObjectModel;using System.Windows.Input;// Partial snippet inside an INotifyPropertyChanged implementation.PropertyChanged?.Invoke(this,new PropertyChangedEventArgs(nameof(Title)));
C# & .NET Reference