system tray in xaml windows phone 8

1.2k Views Asked by At

how can i hide this icons,

?

problem is i always have same color background even if theme is black or light and it is not looking good, i know it is possible to hide it. in xaml but i dont know the best way !

i tried this one ! but not working :(

<Page 
x:Class="App1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:PuzzleTalk"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
Shell:SystemTray.IsVisiable="False" 
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

enter image description here

enter image description here

2

There are 2 best solutions below

1
On

There's a typo in your code - you have Shell:SystemTray.IsVisiable="False" try Shell:SystemTray.IsVisible="False" instead...

6
On

Based off your XAML tags, you're trying to do this with Windows Phone 8.1 runtime

<Page> was the dead give away.

The shell:SystemTray.IsVisible="True" is only forWindows Phone 8 Silverlight and Windows Phone 8.1 Silverlight


Code to hide Status Bar

StatusBar statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();

// Hide the status bar
await statusBar.HideAsync();

//Show the status bar
await statusBar.ShowAsync();

Taken from Hide Status bar in Windows Phone 8.1 Universal Apps