Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the SystemTray has a bottom border in WXGA simulator?

I wonder how I can remove the bottom border of the system tray in WindowsPhone8-App on WXGA resolution?

Here is what happens on WXGA simulator: the small gray line does not appear eg in 720p emulator

the small gray line does not appear eg in 720p emulator

like image 762
malte Avatar asked Oct 11 '13 22:10

malte


2 Answers

To fix this issue for the whole application (including on page transitinos) just add 1 line to the InitializePhoneApplication method in your App.xaml.cs

private void InitializePhoneApplication()
{
    //...

    RootFrame.Margin = new Thickness(0, -1, 0, 0);

    //...
}
like image 71
sust86 Avatar answered Oct 19 '22 18:10

sust86


I don't really understand why it happens, but you can fix it by setting a negative top-margin on the root element of your page:

<Grid x:Name="LayoutRoot" Background="Gray" Margin="0 -1 0 0">
like image 34
Kevin Gosse Avatar answered Oct 19 '22 18:10

Kevin Gosse