简体   繁体   中英

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 ?

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 :

using Windows.UI.ViewManagement 

if (ApplicationView.GetForCurrentView().IsFullScreen)
{
    // ...
}
else
{
}

and exact dimensions through Window.Bounds :

var width = Window.Current.Bounds.Width;
var height = Window.Current.Bounds.Height;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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