Projektdateien hinzufügen.
This commit is contained in:
31
VideoBrowser/Common/NotifyPropertyChanged.cs
Normal file
31
VideoBrowser/Common/NotifyPropertyChanged.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user