Skip to content

Instantly share code, notes, and snippets.

@thomaslevesque
Created July 3, 2013 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomaslevesque/3713bed71a486d02858a to your computer and use it in GitHub Desktop.
Save thomaslevesque/3713bed71a486d02858a to your computer and use it in GitHub Desktop.
private bool _isTextBoxDisabled;
public bool IsTextBoxDisabled
{
get { return _isTextBoxDisabled; }
set
{
_isTextBoxDisabled = value;
OnPropertyChanged("IsTextBoxDisabled");
OnPropertyChanged("IsTextBoxEnabled");
}
}
public bool IsTextBoxEnabled
{
get { return !IsTextBoxDisabled; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment