Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created December 30, 2019 12:03
Show Gist options
  • Save icebeam7/43c749ebe5585d19b4c954c97950c826 to your computer and use it in GitHub Desktop.
Save icebeam7/43c749ebe5585d19b4c954c97950c826 to your computer and use it in GitHub Desktop.
eliteKit: BaseViewModel.cs
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace DemoEliteKit.ViewModels
{
public class BaseViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string propertyName = "")
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
private bool isBusy;
public bool IsBusy
{
get { return isBusy; }
set { isBusy = value; OnPropertyChanged(); }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment