Detect if Windows 8.1 storage application is in SplittView or FullView

Is there any way to find out if the Windows 8.1 repository (XAML / C #) is in SplittView?

Or is there a way to get the full width of the current monitor?

+4
source share
1 answer

You can check if it is turned on in full screen via 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;
+3
source

Source: https://habr.com/ru/post/1531561/


All Articles