Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public event PropertyChangedEventHandler PropertyChanged;
  2.  
  3. // This method is called by the Set accessor of each property.
  4. // The CallerMemberName attribute that is applied to the optional propertyName
  5. // parameter causes the property name of the caller to be substituted as an argument.
  6. private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
  7. {
  8. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement