トップ回答者
Windows 10 mobile での 受信強度やバッテリー充電状態などの表示コントロール

質問
回答
-
以下のサイトは参考になりますでしょうか?
[UWP][XAML] How Do I Show StatusBar / SystemTray?
using System; namespace Windows10 { public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); ShowStatusBar(); } // ステータスバーを表示 private async void ShowStatusBar() { // Windows Mobile Extensions For The UWPの参照を追加してください。 if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar")) { var statusbar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); await statusbar.ShowAsync(); statusbar.BackgroundColor = Windows.UI.Colors.Green; statusbar.BackgroundOpacity = 1; statusbar.ForegroundColor = Windows.UI.Colors.Red; } } } }
#「uwp windows 10 mobile show StatusBar」で検索
- 編集済み kenjinoteMVP 2016年2月27日 10:22
- 回答の候補に設定 Tak1waMVP, Moderator 2016年2月27日 12:23
- 回答としてマーク goro yamamoto 2016年3月1日 23:23
すべての返信
-
以下のサイトは参考になりますでしょうか?
[UWP][XAML] How Do I Show StatusBar / SystemTray?
using System; namespace Windows10 { public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); ShowStatusBar(); } // ステータスバーを表示 private async void ShowStatusBar() { // Windows Mobile Extensions For The UWPの参照を追加してください。 if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar")) { var statusbar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); await statusbar.ShowAsync(); statusbar.BackgroundColor = Windows.UI.Colors.Green; statusbar.BackgroundOpacity = 1; statusbar.ForegroundColor = Windows.UI.Colors.Red; } } } }
#「uwp windows 10 mobile show StatusBar」で検索
- 編集済み kenjinoteMVP 2016年2月27日 10:22
- 回答の候補に設定 Tak1waMVP, Moderator 2016年2月27日 12:23
- 回答としてマーク goro yamamoto 2016年3月1日 23:23