Created
November 30, 2009 19:50
-
-
Save kkozmic/245683 to your computer and use it in GitHub Desktop.
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 class MyObject:INotifyPropertyChanged | |
{ | |
public ICommand Comand { get; set; } | |
private string inputText; | |
public string InputText | |
{ | |
get { return inputText; } | |
set | |
{ | |
if (value != inputText) | |
{ | |
PropertyChanged(this, new PropertyChangedEventArgs("InputText")); | |
} | |
inputText = value; | |
} | |
} | |
private string outputText; | |
public string OutputText | |
{ | |
get { return outputText; } | |
set | |
{ | |
if(value!=outputText) | |
{ | |
PropertyChanged(this, new PropertyChangedEventArgs("OutputText")); | |
} | |
outputText = value; | |
} | |
} | |
public event PropertyChangedEventHandler PropertyChanged; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment