TestNode.cs 670 B

1234567891011121314151617181920212223
  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 System.Collections.Generic;
  4. using ReactiveUI;
  5. namespace XamlTestApplication.ViewModels
  6. {
  7. public class TestNode : ReactiveObject
  8. {
  9. private bool _isExpanded;
  10. public string Header { get; set; }
  11. public string SubHeader { get; set; }
  12. public IEnumerable<TestNode> Children { get; set; }
  13. public bool IsExpanded
  14. {
  15. get { return _isExpanded; }
  16. set { this.RaiseAndSetIfChanged(ref this._isExpanded, value); }
  17. }
  18. }
  19. }