1234567891011121314151617181920 |
- using System;
- using System.ComponentModel;
- using System.Windows;
- namespace InABox.Wpf.Console;
- public class PropertyChangedBase : INotifyPropertyChanged
- {
- public event PropertyChangedEventHandler PropertyChanged;
- protected virtual void OnPropertyChanged(string propertyName)
- {
- Application.Current.Dispatcher.BeginInvoke((Action)(() =>
- {
- var handler = PropertyChanged;
- if (handler != null)
- handler(this, new PropertyChangedEventArgs(propertyName));
- }));
- }
- }
|