如何在Windows Phone 8.1
(C#,XAML)中隐藏状态栏?
在Windows Phone 8
中,这是通过在任何页面设置shell:SystemTray.IsVisible="False"
来完成的。但它在Windows Phone 8.1
中不可用
发布于 2014-04-11 18:12:11
随着Windows phone8.1SDK的发布,出现了一个新的StatusBar。StatusBar取代了Windows Phone Silverlight应用程序中的SystemTray。与SystemTray不同的是,StausBar只能通过代码访问,而且一些功能已经更改。
StatusBar statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();
// Hide the status bar
await statusBar.HideAsync();
//Show the status bar
await statusBar.ShowAsync();
参考:Differences between the new StatusBar in Windows Phone XAML Apps and the SystemTray
Msdn参考:StatusBar class
发布于 2014-11-05 08:09:02
await Windows.UI.ViewManagement.StatusBar.GetForCurrentView().HideAsync();
await Windows.UI.ViewManagement.StatusBar.GetForCurrentView().ShowAsync();
用于隐藏和显示系统托盘
https://stackoverflow.com/questions/23009501
复制相似问题