简体   繁体   English

检测Windows 8.1商店应用程序是否在SplittView或FullView中

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM