https://github.com/karenpayneoregon/notification-change-samples
Example for implementing change notifications in Window Forms for classes attached to controls
https://github.com/karenpayneoregon/notification-change-samples
changenotifier csharpcore net8 windows-forms
Last synced: about 1 month ago
JSON representation
Example for implementing change notifications in Window Forms for classes attached to controls
- Host: GitHub
- URL: https://github.com/karenpayneoregon/notification-change-samples
- Owner: karenpayneoregon
- Created: 2023-12-24T22:58:39.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-24T23:00:50.000Z (over 2 years ago)
- Last Synced: 2025-03-23T18:16:56.006Z (about 1 year ago)
- Topics: changenotifier, csharpcore, net8, windows-forms
- Language: C#
- Homepage:
- Size: 376 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# About
When working with a DataGridView with a DataTable as the data source there is change notification built-in while when working with classes/models with controls a developer must implement INotifyPropertyChanged or use a third-party library like PostScript (a paid for library) or Fody.
This project shows conventional INotifyPropertyChanged and Fody for implementation of property change notification.
> **Note**
> That for controls such as ComboBox and ListBox where the underlying data may change, consider not using a DataTable but instead the same methods used for this code sample by replacing the DataGridView with a ComboBox or ListBox which works same as the DataGridView as the first iteration of this project used ListBox controls.
## Overview
Examples for conventional property change notification using [INotifyPropertyChanged](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifypropertychanged?view=net-8.0) and [PropertyChanged.Fody](https://www.nuget.org/packages/PropertyChanged.Fody/4.1.0?_src=template).
## See
Readme file in the project for more details.