作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
有没有办法判断 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/
有没有办法判断 SplittView 中是否有 Windows 8.1 商店(XAML/C#)? 或者有没有办法获取当前显示器的全宽? 最佳答案 可以通过ApplicationView.IsFullS
我是一名优秀的程序员,十分优秀!