Windows Phone 8.1 Universal Appsでステータスバーを隠す
-
21-12-2019 - |
質問
Windows Phone 8.1
(C#、XAML)のステータスバーを非表示にする方法?
Windows Phone 8
では、shell:SystemTray.IsVisible="False"
を任意のページに設定して行われました。しかし、それはWindows Phone 8.1
解決
Windows Phoneのリリース8.1 SDKには新しいステータスバーがあります。ステータスバーは、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();
.
リファレンス:http://www.visulteLocated.com/post/2014/04/07/differences-tween-the-new-statusbar-in-windows-phone-xaml-apps-and-the-systemtray.aspx "rel=" NOREFERRER "> Windows Phone XAMLアプリとSystemTray
の新しいステータスバーの違い MSDNリファレンス:
他のヒント
await Windows.UI.ViewManagement.StatusBar.GetForCurrentView().HideAsync();
await Windows.UI.ViewManagement.StatusBar.GetForCurrentView().ShowAsync();
.
システムトレイを隠して表示する
ここでは、ステータスバーの操作を説明する簡単なチュートリアル。
http://denilparmar.blogspot。/ 2016/01 / with-with-status-in-windows-phone.html
あなたを助けることを願っています: - )
所属していません StackOverflow