Show status bar when using the ApplicationViewBoun

2019-03-03 08:10发布

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?

1条回答
Evening l夕情丶
2楼-- · 2019-03-03 08:39

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

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.

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.

查看更多
登录 后发表回答