WPF怎么改变那个进度条里面的那个在走的那个东西的颜色呢 还有怎么实现点击进度条就可以跳转至视频的不同位置呢?
https://blog.csdn.net/xuepan1994/article/details/50461602
<br> <Setter Property="Template"><br> <Setter.Value><br> <ControlTemplate TargetType="{x:Type ProgressBar}"><br> <Grid Name="TemplateRoot" SnapsToDevicePixels="true"><br> <Rectangle Fill="{TemplateBinding Background}"/><br> <Rectangle Name="PART_Track" Margin="0"/><br> <Decorator x:Name="PART_Indicator" HorizontalAlignment="Left"><br> <Rectangle Fill="{TemplateBinding Foreground}" Name="Indicator" /><br> </Decorator><br> </Grid><br> </ControlTemplate><br> </Setter.Value><br> </Setter><br>
用Rectangle绑定ProcessBar的Foreground,覆盖ProcessBar的Foreground可以解决ProcessBar在win7系统下的自动加动画效果的问题,实现颜色平铺