[英]Detect if Windows 8.1 store app is in SplittView or FullView
Is there a way to tell if a Windows 8.1 store (XAML / C#) is in SplittView ? 有没有办法判断Windows 8.1存储(XAML / C#)是否在SplittView中?
Or is there a way to get the full width of the current monitor? 或者有没有办法获得当前显示器的全宽?
You can check if it's full screen through ApplicationView.IsFullScreen
: 您可以通过
ApplicationView.IsFullScreen
检查它是否全屏:
using Windows.UI.ViewManagement
if (ApplicationView.GetForCurrentView().IsFullScreen)
{
// ...
}
else
{
}
and exact dimensions through Window.Bounds
: 通过
Window.Bounds
确切的尺寸:
var width = Window.Current.Bounds.Width;
var height = Window.Current.Bounds.Height;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.