TestLayoutRoot.cs 581 B

123456789101112131415161718192021222324
  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.Controls;
  4. namespace Avalonia.Layout.UnitTests
  5. {
  6. internal class TestLayoutRoot : Decorator, ILayoutRoot
  7. {
  8. public TestLayoutRoot()
  9. {
  10. ClientSize = new Size(500, 500);
  11. }
  12. public Size ClientSize
  13. {
  14. get;
  15. set;
  16. }
  17. public Size MaxClientSize => Size.Infinity;
  18. public double LayoutScaling => 1;
  19. }
  20. }