XAML layout is clipped at the bottom. Lumia 640

The XAML layout of the Windows Phone 8.1 (Universal) app is cropped about 30 pixels at the bottom on the Lumia 640. It works without cropping on all other models. This is probably because the Lumia 640 comes with on-screen buttons. (Start, Back and Search)

If so, what is the correct way to adapt my XAML layout to this particular scenario? Is there a way to test this scenario in an emulator?

+3


source to share


1 answer


I think adding this to your C # code should work:



public MainPage()
   {
       this.InitializeComponent();
       Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().SetDesiredBoundsMode(Windows.UI.ViewManagement.ApplicationViewBoundsMode.UseVisible);
    }

      

0


source







All Articles