Added pointer wheel change functionality on the volume slider.

This commit is contained in:
2026-08-15 22:53:20 -04:00
parent bc807e3540
commit 5302a3c955

View File

@@ -178,7 +178,14 @@
</Canvas> </Canvas>
</Viewbox> </Viewbox>
</Button> </Button>
<Slider Width="200" Minimum="0.0" Maximum="1.0" StepFrequency="0.01" VerticalAlignment="Center" Value="{Binding Volume, Mode=TwoWay}"> <Slider
Width="200"
Minimum="0.0"
Maximum="1.0"
StepFrequency="0.01"
VerticalAlignment="Center"
PointerWheelChanged="VolumeSlider_PointerWheelChanged"
Value="{Binding Volume, Mode=TwoWay}">
<Slider.Resources> <Slider.Resources>
<!-- Thumb (the "ball") --> <!-- Thumb (the "ball") -->
<StaticResource x:Key="SliderThumbBackground" ResourceKey="DarkGradientBrush"/> <StaticResource x:Key="SliderThumbBackground" ResourceKey="DarkGradientBrush"/>