gpt4 book ai didi

c# - 检测 Windows 8.1 商店应用程序是否处于 SplittView 或 FullView

转载 作者:太空狗 更新时间:2023-10-30 01:36:22 25 4
gpt4 key购买 nike

有没有办法判断 SplittView 中是否有 Windows 8.1 商店(XAML/C#)?

或者有没有办法获取当前显示器的全宽?

最佳答案

可以通过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;

关于c# - 检测 Windows 8.1 商店应用程序是否处于 SplittView 或 FullView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22378115/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com