Skip to content

Instantly share code, notes, and snippets.

@StillLearnin
Created May 25, 2016 21:21
Show Gist options
  • Save StillLearnin/67f506bfd89966d0915a858f7caeb6b4 to your computer and use it in GitHub Desktop.
Save StillLearnin/67f506bfd89966d0915a858f7caeb6b4 to your computer and use it in GitHub Desktop.
INotifyPropertyChanged that works with Xamarin
public class INotifyImplementation : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged([CallerMemberName]string propertyName = null)
{
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment