This repository has been archived on 2026-03-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Eco/VideoBrowser/Common/NotifyPropertyChanged.cs
2023-07-24 12:00:34 +02:00

31 lines
1019 B
C#

namespace VideoBrowser.Common
{
using System.ComponentModel;
using System.Runtime.CompilerServices;
/// <summary>
/// Defines the <see cref="NotifyPropertyChanged" />
/// Standard INotifyPropertyChanged implementation.
/// </summary>
public class NotifyPropertyChanged : INotifyPropertyChanged
{
/// <summary>
/// Defines the PropertyChanged
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The property changed handler
/// </summary>
protected PropertyChangedEventHandler PropertyChangedHandler => this.PropertyChanged;
/// <summary>
/// The OnPropertyChanged
/// </summary>
/// <param name="propertyName">The <see cref="string"/></param>
public void OnPropertyChanged([CallerMemberName]string propertyName = null)
{
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}