WPFはスライダーのスタイルを変更します



Wpf Changes Slider Style



サムスライダーの画像がカスタマイズされているスタイルの追加、スライダーバーの画像もカスタム画像であり、参照は非常に便利です

<Style x:Key='Slider_Thumb' TargetType='Thumb'> <Setter Property='Focusable' Value='false' /> <Setter Property='Template'> <Setter.Value> 'Thumb'> <Image Width='30' Height='30' Source='ImageVolumCor.png' /> Setter.Value> Setter> Style> <Style x:Key='Slider_CustomStyle' TargetType='Slider' > <Setter Property='Focusable' Value='false' /> <Setter Property='Template'> <Setter.Value> 'Slider'> <Grid Height='30' > <Grid.Background> 'ImageVolumLong.png' /> Grid.Background> Grid.Column='1' Name='PART_Track'> Style='{StaticResource Slider_Thumb}'/> Grid> Setter.Value> Setter> Style>

参照するときに追加するだけです



Style='{StaticResource Slider_CustomStyle}'

それはできます。
画像