2013-06-20 58 views
0

我正在用visual studio 2012 ultimate开发windows phone应用程序。 我在我的应用程序中有一个提交按钮的页面。 我想在点击提交按钮时使用进度条,它会显示,直到下一页加载。我已经从工具箱添加进度条控件到我的设计文件中,但现在但接下来要做什么? .So请任何人帮助我...... 在此先感谢.....在windows phone应用程序的登录页面上使用progressbar

回答

0

PerformanceProgressBar

为Windows Phone 7,我们建议您使用来自WP ToolkitPerformanceProgressBar由于与内置ProgressBar

<toolkit:PerformanceProgressBar IsIndeterminate="True"></toolkit:PerformanceProgressBar> 

IsIndeterminate是长期存在的性能问题用于打开和关闭控制。如果将Visibility设置为Visibility.Collapsed,则该控件仍在运行并使用CPU时间,该时间很差。

的SystemTray +进度

中的Windows Phone 7.1(7.5或芒果)推出了另一种选择,就是到ProgressBar添加到SystemTray(内置的原生应用程序使用此方法),以下链接应该有用...

http://www.jeff.wilcox.name/2011/07/creating-a-global-progressindicator-experience-using-the-windows-phone-7-1-sdk-beta-2/

http://blog.duc.as/2011/10/08/using-the-system-tray-to-show-progress-in-windows-phone-7-mango/

http://xamlgeek.net/2012/10/30/using-the-progressindicator-in-the-systemtray-in-windows-phone/

0

如果您使用的是不确定的ProgressBar(带点在屏幕上流动的那个),则将其可见性属性从Collapsed更改为Visible你想显示它。当您想隐藏它时,将其更改回Collapsed。

<ProgressBar x:Name="playerProgressBar" IsIndeterminate="True" Height="22" Margin="0" Visibility="Collapsed" Width="478" Style="{StaticResource ProgressBarStyle1}" /> 

如果其正常的进度条,然后只需其Value属性设置为要显示百分比进度。您可以将Value属性绑定到页面中的成员变量。

<ProgressBar x:Name="playerShowProgress" Height="12" VerticalAlignment="Top" Value="{Binding Path=ShowProgressBarValue, Mode=OneWay}" Width="321" Visibility="Visible" Style="{StaticResource ProgressBarStyle1}" /> 
+0

感谢您的帮助,我想让进度条显示一段时间,有没有什么办法可以让它成为可能。如果可能的话请请帮助我。有些时间意味着总之我想延迟一段时间加载页面,以便我可以看到进度条。 – Akash

相关问题