首页 > 其他 > 详细

WP 8.1 status bar

时间:2014-09-09 22:49:49      阅读:375      评论:0      收藏:0      [点我收藏+]

A status bar is the bar showing signal, battery and time on the top of the phone‘s screen. In WP8.1 we it‘s called status bar, but in WP8.0 it‘s called phone shell.

 

Show progress bar in the status bar:

            var statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();

 

            //statusBar.ProgressIndicator.ProgressValue = 0.5;

            statusBar.ProgressIndicator.Text = "loading";

 

            statusBar.ProgressIndicator.ShowAsync();

 

Hide progress bar in the status bar:

            var statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();

 

            //statusBar.ProgressIndicator.ProgressValue = 0;

 

            statusBar.ProgressIndicator.HideAsync();

 

 

 

A useful link: http://blogs.msdn.com/b/amar/archive/2014/05/12/status-bar-in-windows-phone-8-1.aspx

WP 8.1 status bar

原文:http://www.cnblogs.com/yibinpan/p/3963372.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!