TestViewModel.cs 819 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Avalonia.UnitTests;
  2. namespace Avalonia.Markup.Xaml.UnitTests
  3. {
  4. public class TestViewModel : NotifyingBase
  5. {
  6. private string _string;
  7. private int _integer;
  8. private TestViewModel _child;
  9. public int Integer
  10. {
  11. get => _integer;
  12. set
  13. {
  14. _integer = value;
  15. RaisePropertyChanged();
  16. }
  17. }
  18. public string String
  19. {
  20. get => _string;
  21. set
  22. {
  23. _string = value;
  24. RaisePropertyChanged();
  25. }
  26. }
  27. public TestViewModel Child
  28. {
  29. get => _child;
  30. set
  31. {
  32. _child = value;
  33. RaisePropertyChanged();
  34. }
  35. }
  36. }
  37. }