TestViewModel.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. private bool _boolean;
  10. public int Integer
  11. {
  12. get => _integer;
  13. set
  14. {
  15. _integer = value;
  16. RaisePropertyChanged();
  17. }
  18. }
  19. public string String
  20. {
  21. get => _string;
  22. set
  23. {
  24. _string = value;
  25. RaisePropertyChanged();
  26. }
  27. }
  28. public TestViewModel Child
  29. {
  30. get => _child;
  31. set
  32. {
  33. _child = value;
  34. RaisePropertyChanged();
  35. }
  36. }
  37. public bool Boolean
  38. {
  39. get => _boolean;
  40. set
  41. {
  42. _boolean = value;
  43. RaisePropertyChanged();
  44. }
  45. }
  46. }
  47. }