WP8.1StoreApp(WP8.1RT)---SystemTray的变化

原Microsoft.Phone.Shell中的SystemTray,已经改到Windows.UI.ViewManagement中StatusBar了。

只能在代码中设置相关属性。

如:

1
2
3
4
5
6
7
8
StatusBar statusBar = StatusBar.GetForCurrentView();
// 显示StatusBar
await statusBar.ShowAsync();
// 隐藏StatusBar
// await statusBar.HideAsync();
// 设置ProgressIndicator
statusBar.ProgressIndicator.Text = "test...";
await statusBar.ProgressIndicator.ShowAsync();

msdn

原文:

原文地址:https://www.cnblogs.com/liubaicai/p/3668305.html