【问题标题】:How to change the color of progress indicator in windows phone 7如何更改windows phone 7中进度指示器的颜色
【发布时间】:2014-03-22 12:57:07
【问题描述】:

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

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

请告诉我任何想法..

【问题讨论】:

    标签: xaml windows-phone-7 progress-bar


    【解决方案1】:

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

    <ProgressBar Foreground="Blue" />
    

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-17
      • 2015-07-03
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 2014-04-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多