TestViewModel.cs 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright (c) The Avalonia Project. All rights reserved.
  2. // Licensed under the MIT license. See licence.md file in the project root for full license information.
  3. using Avalonia.UnitTests;
  4. namespace Avalonia.Markup.Xaml.UnitTests
  5. {
  6. public class TestViewModel : NotifyingBase
  7. {
  8. private string _string;
  9. private int _integer;
  10. private TestViewModel _child;
  11. public int Integer
  12. {
  13. get { return _integer; }
  14. set
  15. {
  16. _integer = value;
  17. RaisePropertyChanged();
  18. }
  19. }
  20. public string String
  21. {
  22. get { return _string; }
  23. set
  24. {
  25. _string = value;
  26. RaisePropertyChanged();
  27. }
  28. }
  29. public TestViewModel Child
  30. {
  31. get { return _child; }
  32. set
  33. {
  34. _child = value;
  35. RaisePropertyChanged();
  36. }
  37. }
  38. }
  39. }