Skip to content

Instantly share code, notes, and snippets.

@LoriBru
Created January 14, 2019 11:16
Show Gist options
  • Select an option

  • Save LoriBru/f08ecd73debcaf8729ba5fa392ff4b6e to your computer and use it in GitHub Desktop.

Select an option

Save LoriBru/f08ecd73debcaf8729ba5fa392ff4b6e to your computer and use it in GitHub Desktop.
Full property with OnpropertyChanged
string name;
public string Name
{
get { return name; }
set
{
name = value;
OnPropertyChanged(nameof(Name));
}
}
protected void OnPropertyChanged(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