You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
498 B
17 lines
498 B
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace Samples.Infrastructure
|
|
{
|
|
public interface IViewModel { }
|
|
|
|
public class ViewModelBase : IViewModel, INotifyPropertyChanged
|
|
{
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
protected virtual void OnPropertyChanged(string propertyName)
|
|
{
|
|
if (PropertyChanged != null)
|
|
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|
|
|