Skip to content

Instantly share code, notes, and snippets.

@MikeBild
Created June 17, 2011 15:31
Show Gist options
  • Save MikeBild/1031650 to your computer and use it in GitHub Desktop.
Save MikeBild/1031650 to your computer and use it in GitHub Desktop.
ViewModelField<T>
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