Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created July 20, 2020 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuongmep/4c237abbf082c69795077b22dc4d9836 to your computer and use it in GitHub Desktop.
Save chuongmep/4c237abbf082c69795077b22dc4d9836 to your computer and use it in GitHub Desktop.
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace DockableRevitAPI.Controls
{
public class ViewModelBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = "")
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment