Windows phone 7 PerformanceProgressBar仅显示一个点
我正在(伪)Splash页面上使用Silverlight工具包中的PerformanceProgressBar。但是,它只显示一个移动的点。怎么了Windows phone 7 PerformanceProgressBar仅显示一个点,windows-phone-7,silverlight-toolkit,Windows Phone 7,Silverlight Toolkit,我正在(伪)Splash页面上使用Silverlight工具包中的PerformanceProgressBar。但是,它只显示一个移动的点。怎么了 <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> &
<Grid x:Name="LayoutRoot" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid x:Name="ActiveSplash" Height="Auto" Width="480" Background="Pink" Grid.Row="1" Visibility="Visible">
<Image Name="SplashScreenImage" Source="/SplashScreenImage.jpg"></Image>
<toolkit:PerformanceProgressBar Width="480" Height="Auto"
IsIndeterminate="True"
Foreground="Blue"
Background="Blue"
Margin="0,104,0,0" />
</Grid>
<Grid x:Name="ContentPanel" Visibility="Collapsed" Grid.Row="2">
<!-- stuff -->
</Grid>
</Grid>
您的应用程序在使用性能进度条时是否进行了大量处理? 我注意到,UI线程中的内容越多,在工具栏中看到的点就越少
尝试在后台线程中进行处理是否尝试将水平对齐设置为拉伸?是在设计器中还是在运行应用程序时?是在我运行应用程序时。所有的圆点都出现在设计师身上。你是出于好奇才这样做的吗。为什么前景和背景的颜色会完全相同?:)哦,是的。处理负载是我首先需要进度条的原因。似乎这可能是原因。您可以使用不在UIThread上运行的全局ProgressIndicator。我在启动页上使用它,因此全局PI看起来不够漂亮:)