0
以下是代碼,我必須在移動滑塊時更改軌道的顏色。 請給我一個解決方案如何更改滑塊中的軌道顏色wpf
<Track x:Name="PART_Track" Grid.Row="1">
<Track.DecreaseRepeatButton >
<RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.DecreaseLarge}"/>
</Track.DecreaseRepeatButton>
<Track.IncreaseRepeatButton>
<RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.IncreaseLarge}"/>
</Track.IncreaseRepeatButton>
<Track.Thumb>
<Thumb x:Name="Thumb" Style="{StaticResource CustomThumbForSlider}" Background="Black"/>
</Track.Thumb>
</Track>