提交 56357fc7 编写于 作者: M Martin Zikmund

chore: Avoid using XamlRoot.Bounds on Windows

上级 1ba9986d
......@@ -44,7 +44,11 @@ namespace Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml
}
}
#else
private Rect WindowBounds => TestServices.WindowHelper.EmbeddedTestRoot.control?.XamlRoot?.Bounds ?? Window.Current.Bounds;
private Rect WindowBounds =>
#if HAS_UNO
TestServices.WindowHelper.EmbeddedTestRoot.control?.XamlRoot?.Bounds ??
#endif
Window.Current.Bounds;
#endif
private Point RootLocation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册