Created
June 11, 2018 10:05
-
-
Save sonnguyen0310/d09cb346a1a322c4889d54142545f9a9 to your computer and use it in GitHub Desktop.
Xamarin form PropertyChangedEventHandler
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
public event PropertyChangedEventHandler PropertyChanged; | |
protected void OnPropertyChanged([CallerMemberName] string propertyName = "") | |
{ | |
var changed = PropertyChanged; | |
if (changed == null) | |
return; | |
changed.Invoke(this, new PropertyChangedEventArgs(propertyName)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment