dotnet / dotnet/dotnet-api-docs
Add an Example of PropertyChanged Handler
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
It would be helpful to include a basic example of how to implement a hander. Something like this:
PropertyChanged += (sender, e) =>
{
Console.WriteLine($"Property: {e.PropertyName} changed.");
};
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: a0965a46-4e23-9280-7bef-915efe44b20d
* Version Independent ID: b48f8b3a-3486-a11c-7422-fcb7874ab6ad
* Content: [INotifyPropertyChanged Interface (System.ComponentModel)](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifypropertychanged?view=netframework-4.7.2)
* Content Source: [xml/System.ComponentModel/INotifyPropertyChanged.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.ComponentModel/INotifyPropertyChanged.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.