[英]Detect if Windows 8.1 store app is in SplittView or FullView
有沒有辦法判斷Windows 8.1存儲(XAML / C#)是否在SplittView中?
或者有沒有辦法獲得當前顯示器的全寬?
您可以通過ApplicationView.IsFullScreen
檢查它是否全屏:
using Windows.UI.ViewManagement
if (ApplicationView.GetForCurrentView().IsFullScreen)
{
// ...
}
else
{
}
通過Window.Bounds
確切的尺寸:
var width = Window.Current.Bounds.Width;
var height = Window.Current.Bounds.Height;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.