Reputation: 635
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}">
Upvotes: 1
Views: 1214
Reputation: 8161
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
Upvotes: 4
Reputation: 51
There's a typo in your code - you have Shell:SystemTray.IsVisiable="False"
try Shell:SystemTray.IsVisible="False"
instead...
Upvotes: 5