使用 ApplicationViewBoundsMode.UseCoreWindow windows phone 时显示状态栏 8.1

Show status bar when using the ApplicationViewBoundsMode.UseCoreWindow windows phone 8.1

我的 Windows Phone 8.1 apps 底部进入软件导航键下。我使用 ApplicationViewBoundsMode.UseCoreWindow 让页面停留在软件导航键上。但是结果页面的内容在状态栏下面,状态栏变得透明。有什么办法既可以让状态栏正常,又可以让页面不在软件导航键下?

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 如上所述,这将修复它.

您可以参考@Joost Van 写的this blog,他在其中演示了详细的步骤和代码以及屏幕截图。它适用于您的 Windows Phone 8.1 项目。