我想对《进步的巴塞罗那》作一个风格,因为在某些价值观之间,风格应当改变。
<Style x:Key="ProBar" TargetType="{x:Type ProgressBar}">
<Style.Triggers>
<Trigger Property="Value" Value="<10">
<Setter Property="Foreground">
<Setter.Value>
<!--OrangeColour-->
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFFFFFFF" Offset="0" />
<GradientStop Color="#FFFDDF97" Offset="0.992" />
<GradientStop Color="#FFF7DCAB" Offset="0.02" />
<GradientStop Color="#FFFFDC9E" Offset="0.5" />
<GradientStop Color="#FFFDA564" Offset="0.513" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
这样做是否可行?