Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public event PropertyChangedEventHandler PropertyChanged;
- // This method is called by the Set accessor of each property.
- // The CallerMemberName attribute that is applied to the optional propertyName
- // parameter causes the property name of the caller to be substituted as an argument.
- private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
- {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement