You've already forked UWP-Visual-Asset-Generator
mirror of
https://github.com/izzy2lost/UWP-Visual-Asset-Generator.git
synced 2026-03-26 18:15:27 -07:00
25 lines
749 B
C#
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));
|
|
}
|
|
}
|
|
}
|
|
}
|