Guest User

Untitled

a guest
Apr 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public class MyObject:INotifyPropertyChanged
  2. {
  3.  
  4. public ICommand UpdateCommand { get; set; }
  5.  
  6. private string inputText;
  7.  
  8. public string InputText
  9. {
  10. get { return inputText; }
  11. set
  12. {
  13. if (value != inputText)
  14. {
  15. PropertyChanged(this, new PropertyChangedEventArgs("InputText"));
  16. }
  17. inputText = value;
  18. }
  19. }
  20.  
  21. private string outputText;
  22.  
  23. public string OutputText
  24. {
  25. get { return outputText; }
  26. set
  27. {
  28. if(value!=outputText)
  29. {
  30. PropertyChanged(this, new PropertyChangedEventArgs("OutputText"));
  31. }
  32. outputText = value;
  33. }
  34. }
  35.  
  36. public event PropertyChangedEventHandler PropertyChanged = delegate { };
  37. }
Add Comment
Please, Sign In to add comment