Navigation buttons hiding Windows Phone 8.1

后端 未结 1 1935
孤独总比滥情好
孤独总比滥情好 2021-01-13 00:47

I\'m building a Windows Phone 8.1 application, and I\'m facing the following problem. There are phones that don\'t have hardware navigation buttons(those for back, home and

相关标签:
1条回答
  • 2021-01-13 01:04

    You need to set the ApplicationViewBoundsMode to UseCoreWindow:

     ApplicationView.GetForCurrentView().SetDesiredBoundsMode(ApplicationViewBoundsMode.UseCoreWindow);
    

    The default is ApplicationViewBoundsMode.UseVisible which is your current behavior. With ApplicationViewBoundsMode.UseCoreWindow, the command bar, status bar nor the software buttons will occupy space.

    If you need to change your margins or anything else when the BoundsMode changes, register for the VisibleBoundsChanged event:

    ApplicationView.GetForCurrentView().VisibleBoundsChanged += OnVisibleBoundsChanged
    

    You can read more in the official documentation.

    0 讨论(0)
提交回复
热议问题