开发者

Add background while uploading data wp7?

开发者 https://www.devze.com 2023-02-27 12:05 出处:网络
anyone know how to add ba开发者_开发技巧ckground while uploading data ?, currently performanceprogressbar just shown while uploading data. i try to use rectangle to cover screen but its doesn\'t look

anyone know how to add ba开发者_开发技巧ckground while uploading data ?, currently performanceprogressbar just shown while uploading data. i try to use rectangle to cover screen but its doesn't look really nice. current codes:

    ProgressBar bar = new ProgressBar();
    Rectangle loadi![enter image description here][1]ng = new Rectangle() 
        { 
             Height = 800, 
             Width = 480, 
             Fill =  new SolidColorBrush(Colors.Black), Opacity = 0.2 
        };  

     bar.IsIndeterminate = true;
     this.LayoutRoot.Children.Add(loading);
     this.LayoutRoot.Children.Add(bar); 

something like this,

any suggestion ?, thanks.


Have you considered using a Popup control? You can add other controls to it and display it whenever the loading progress changes (e.g. starts loading something).

Here is a demo you might be interested in for the situation.

0

精彩评论

暂无评论...
验证码 换一张
取 消