TestLayoutRoot.cs 631 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) The Perspex Project. All rights reserved.
  2. // Licensed under the MIT license. See licence.md file in the project root for full license information.
  3. using Perspex.Controls;
  4. namespace Perspex.Layout.UnitTests
  5. {
  6. internal class TestLayoutRoot : Decorator, ILayoutRoot
  7. {
  8. public TestLayoutRoot()
  9. {
  10. ClientSize = new Size(500, 500);
  11. LayoutManager = new LayoutManager { Root = this };
  12. }
  13. public Size ClientSize
  14. {
  15. get;
  16. set;
  17. }
  18. public ILayoutManager LayoutManager
  19. {
  20. get;
  21. }
  22. }
  23. }