13

I wanted to know how to hide the navigation-bar. And if it is possible to specify in XAML the code to SuppressSystemOverlay, as it is with the systemtray : shell:SystemTray.IsVisible="False".

I cannot find the description not even on msdn, which seems to refer to wp 8.1 build with WinRT, and my application is with silverlight.

Cœur
  • 37,241
  • 25
  • 195
  • 267
JTIM
  • 2,774
  • 1
  • 34
  • 74
  • 1
    Silverlight is getting to be pretty stale. [Read this](http://stackoverflow.com/questions/23009501/hide-status-bar-in-windows-phone-8-1-universal-apps). – Hans Passant Sep 02 '15 at 16:08

1 Answers1

3

The answer is NO, sorry. From 8.1 it is only possible through code as described in this post. However, executing hide code in the constructor like this should give a similar effect:

public MainPage()
{
   InitializeComponent();
   await Windows.UI.ViewManagement.StatusBar.GetForCurrentView().HideAsync();
   Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().SuppressSystemOverlays = true;
}
Community
  • 1
  • 1
Gillsoft AB
  • 4,185
  • 2
  • 19
  • 35
  • So this is only working on winRT and not silverlight, as per the question. – JTIM Dec 07 '15 at 15:52
  • I have tried the code and the `Windows.UI.ViewManagement.StatusBar` does not exist and also `Windows.UI.ViewManagement.ApplicationView` does not exist either am I missing something? – JTIM Dec 07 '15 at 16:02
  • Creating a blank new wp8.1 silverlight still does not have the possibility. Further the post describes the function in relation to WinRT and not silverlight – JTIM Dec 07 '15 at 16:15
  • And also this links supports my comments http://blogs.msdn.com/b/amar/archive/2014/05/12/status-bar-systemtray-for-silverlight-apps-for-windows-phone-8-1.aspx – JTIM Dec 07 '15 at 16:17
  • Suit yourself I Will upvote correct answers and mark them answered. I could downvote wring answers not related to the question. If I have or not I will not comment. But you have received a lot of points for not a correct answer so relax and rise to the challenge in stead as me and others. :) – JTIM Dec 07 '15 at 16:37