Created
January 14, 2019 11:16
-
-
Save LoriBru/f08ecd73debcaf8729ba5fa392ff4b6e to your computer and use it in GitHub Desktop.
Full property with OnpropertyChanged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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