WP8.1 中的SystemTray被 StatusBar 代替了。在Windows.UI.ViewManagement 命名空间下,而且只能在后台代码中设置,XAML中不行。用法是这样的:

StatusBar statusBar = StatusBar.GetForCurrentView();
// 显示StatusBar
await statusBar.ShowAsync();
// 隐藏StatusBar
// await statusBar.HideAsync();
// 设置ProgressIndicator
statusBar.ProgressIndicator.Text = "test...";
await statusBar.ProgressIndicator.ShowAsync();

 

相关文章: