Created
June 17, 2011 15:31
-
-
Save MikeBild/1031650 to your computer and use it in GitHub Desktop.
ViewModelField<T>
This file contains 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 class ViewModelField<T> : INotifyPropertyChanged | |
{ | |
private T _value; | |
public T Value | |
{ | |
get { return _value; } | |
set | |
{ | |
_value = value; | |
PropertyChanged(this, new PropertyChangedEventArgs("Value")); | |
} | |
} | |
public event PropertyChangedEventHandler PropertyChanged = delegate { }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment