首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >在Windows Phone 8.1通用应用程序中隐藏状态栏

在Windows Phone 8.1通用应用程序中隐藏状态栏
EN

Stack Overflow用户
提问于 2014-04-11 18:04:47
回答 2查看 22.7K关注 0票数 48

如何在Windows Phone 8.1 (C#,XAML)中隐藏状态栏?

Windows Phone 8中,这是通过在任何页面设置shell:SystemTray.IsVisible="False"来完成的。但它在Windows Phone 8.1中不可用

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-04-11 18:12:11

随着Windows phone8.1SDK的发布,出现了一个新的StatusBar。StatusBar取代了Windows Phone Silverlight应用程序中的SystemTray。与SystemTray不同的是,StausBar只能通过代码访问,而且一些功能已经更改。

代码语言:javascript
复制
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

票数 89
EN

Stack Overflow用户

发布于 2014-11-05 08:09:02

代码语言:javascript
复制
await Windows.UI.ViewManagement.StatusBar.GetForCurrentView().HideAsync(); 
await Windows.UI.ViewManagement.StatusBar.GetForCurrentView().ShowAsync(); 

用于隐藏和显示系统托盘

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23009501

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档