Sa2/GitHub_Explorer

プログレスバーを表示させる

Closed this issue · 2 comments

Sa2 commented

ログインやGitHubからデータをフェッチするときにプログレスバーが表示されるようにする

Sa2 commented

通常のProgressbar要素では配置したその位置に表示されるが
今回の要件ではシステムトレイにプログレスバー(ステータスバーという?)とステータスを表示させたい

参考
http://stackoverflow.com/questions/23009501/hide-status-bar-in-windows-phone-8-1-universal-apps
http://irisclasson.com/2014/08/27/working-with-the-statusbarsystemtray-in-wp-sl-and-winrt-plus-some-guidelines/

Sa2 commented

以下のように対応することで解決

// ステータスバーを定義
StatusBar statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();

// ステータスバーに文字列とプログレスバーを表示
statusBar.ProgressIndicator.Text = "Text Display";
statusBar.ProgressIndicator.ShowAsync();

// ステータスバーを隠す
statusBar.ProgressIndicator.HideAsync();