简体   繁体   English

抑制系统覆盖,Windows Phone 8.1(Silverlight)

[英]Suppress System Overlays, Windows phone 8.1 (Silverlight)

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" . 如果可以在XAML中指定SuppressSystemOverlay的代码,就像使用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. 我甚至无法在msdn上找到描述,这似乎是指使用WinRT构建的wp 8.1,而我的应用程序是使用silverlight。

The answer is NO, sorry. 答案是否定的,抱歉。 From 8.1 it is only possible through code as described in this post . 从8.1它通过代码只可能在描述此信息 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;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM