PerformanceProgressBar仅显示一个点

时间:2012-08-09 06:16:10

标签: windows-phone-7 silverlight-toolkit

我在(伪)splashpage上使用Silverlight工具包中的PerformanceProgressBar。但是,它只显示一个移动点。有什么问题?

<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>

1 个答案:

答案 0 :(得分:0)

您的应用在使用效果进度条时是否进行了大量处理? 我注意到你在UI线程中拥有的越多,你在栏中看到的点越少。

尝试在后台线程中进行处理