如何更改 Windows Phone 7 中进度指示器的颜色

New*_*per 5 xaml windows-phone-7 progress-bar

我想更改进度指示器的颜色。默认颜色为红色。如果我想将颜色更改为蓝色意味着我必须做什么。我找不到指示器颜色的任何属性。是否可以更改颜色?

<Grid Background="#7F000000" x:Name="ProgressGrid" Visibility="{Binding Path=IsVisible}">
            <TextBlock HorizontalAlignment="Center" Margin="10,500,0,0" Height="100" Text="{Binding Path=AppResources.Label558, Source={StaticResource LocalizedStrings}}" FontSize="28" FontWeight="Bold" />
            <ProgressBar IsIndeterminate="True" Width="383" Margin="0,500,0,0" />
        </Grid>
Run Code Online (Sandbox Code Playgroud)

请让我知道任何想法..

har*_*r07 5

对的,这是可能的。更改Foreground进度条的属性以实现:

<ProgressBar Foreground="Blue" />
Run Code Online (Sandbox Code Playgroud)

您错过的另一件事是,进度条颜色默认设置为手机重音主题。你看到它是红色的,因为当时手机主题设置为红色。并且不建议更改默认行为,除非您有充分的理由这样做。