Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyObject:INotifyPropertyChanged
- {
- public ICommand UpdateCommand { 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 = delegate { };
- }
Add Comment
Please, Sign In to add comment