dotnet / dotnet/dotnet-api-docs

Add an Example of PropertyChanged Handler

Open
#1,112 1 comment 0 reactions 0 assignees View on GitHub
area-System.ComponentModel dotnet-api/prod Pri2 untriaged
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.