Files
UWP-Visual-Asset-Generator/MVVM/BindableBase.cs
RobbyRobbyRobby 25a2f5688b Added base app
Rob's base starting point
2019-09-19 11:56:43 +10:00

25 lines
749 B
C#

namespace MVVM
{
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
/// <summary>
/// Implementation of <see cref="INotifyPropertyChanged"/> to simplify models.
/// </summary>
[Windows.Foundation.Metadata.WebHostHidden]
public class BindableBase : INotifyPropertyChanged
{
//MVVM stuff
public event PropertyChangedEventHandler PropertyChanged;
public void NotifyPropertyChanged(String propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (null != handler)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}