2012-08-09 86 views
1

我在(僞)splashpage上使用Silverlight工具箱中的PerformanceProgressBar。但是,它只顯示一個移動點。哪裏不對?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> 
+0

你試過設置Horizo​​ntalAlignment來伸展嗎? – 2012-08-09 06:48:26

+0

是的。它沒有幫助。 – Esa 2012-08-09 07:51:45

+0

這是發生在設計師還是當你運行應用程序? – 2012-08-09 07:57:02

回答

0

您的應用程序在使用性能進度欄時是否進行了大量處理? 我注意到你在UI線程中的得分越多,在你看到的點數就越少。

試着在後臺線程中做你的處理

+0

噢。處理負荷是我首先需要進度條的原因。似乎這可能是可能的原因。 – Esa 2012-11-06 09:52:24

+0

你可以使用全局的ProgressIndicator,它不會在UIThread上運行 – Berni 2012-11-13 14:46:08

+0

我在初始頁面上使用它,所以全局PI看起來不夠漂亮:) – Esa 2012-11-14 15:45:30