使用 ApplicationViewBoundsMode.UseCoreWindow windows phone 8.1 时显示状态栏 [英] Show status bar when using the ApplicationViewBoundsMode.UseCoreWindow windows phone 8.1

查看:27
本文介绍了使用 ApplicationViewBoundsMode.UseCoreWindow windows phone 8.1 时显示状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Windows Phone 8.1 应用程序底部位于软件导航键下方.我使用 ApplicationViewBoundsMode.UseCoreWindow 使页面停留在软件导航键上.但结果页面的内容进入状态栏下方,状态栏变得透明.有什么办法可以保持状态栏正常,同时让页面不进入软件导航键下?

My Windows Phone 8.1 apps bottom part gets under the software navigation keys. I use ApplicationViewBoundsMode.UseCoreWindow to make the page stay over the software navigation keys. But as a result the content of the page gets under the status bar and the status bar becomes transparent. Is there any way to keep the status bar normal and also make the page from going under the software navigation keys?

推荐答案

有什么办法可以保持状态栏正常,同时也让页面从软件导航键下?

Is there any way to keep the status bar normal and also make the page from going under the software navigation keys?

ApplicationViewBoundsMode.UseCoreWindow 确实可以帮助显示导航键下的内容.但是如果你想避免顶部状态栏变得透明的副作用,你可以尝试 ApplicationView.GetForCurrentView().VisibleBoundsChanged 并更改页面的边距.如果您看一下,顶部边距设置为 -40 以进入状态栏下方,您可以将其设置为 0 并设置 ApplicationView 如上所述,将修复它.

ApplicationViewBoundsMode.UseCoreWindow can indeed help to display content under the navigation key. But if you want to avoid the side effect that your top status bar becomes transparent, you could try ApplicationView.GetForCurrentView().VisibleBoundsChanged and change the margin of your page. If you have a look, The top margin is set to -40 to go under the status bar you could just put that to 0 and set the ApplicationView as mentioned above that'll fix it.

您可以参考这个博客 由@Joost Van 撰写,他演示了详细的步骤和代码以及屏幕截图.它适用于您的 Windows Phone 8.1 项目.

You might refer to this blog written by @Joost Van where he demonstrates the detailed steps and code as well as the screenshot. And it works with your Windows Phone 8.1 project.

这篇关于使用 ApplicationViewBoundsMode.UseCoreWindow windows phone 8.1 时显示状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆