wp7上传数据时添加背景?
有人知道如何在上传数据时添加背景吗?目前性能进度条仅在上传数据时显示。我尝试使用矩形来覆盖屏幕,但它看起来不太好。 当前代码:
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);
类似这样,
有什么建议吗?谢谢。
anyone know how to add background 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否考虑过使用 弹出控件?您可以向其中添加其他控件,并在加载进度发生变化(例如开始加载某些内容)时显示它。
这是您可能对这种情况感兴趣的演示。
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.