Skip to content

Commit d73a67e

Browse files
committed
(WIP) setting IsMoveToPointEnabled to false fixes the issue
1 parent df00283 commit d73a67e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/MainDemo.Wpf/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"Demo App": {
44
"commandName": "Project",
5-
"commandLineArgs": "-p Home -t Inherit -f LeftToRight"
5+
"commandLineArgs": "-p Slider -t Inherit -f LeftToRight"
66
}
77
}
88
}

src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Slider.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,12 @@
985985
<Setter Property="Background" Value="{x:Null}" />
986986
<Setter Property="BorderBrush" Value="Transparent" />
987987
<Setter Property="Foreground" Value="{DynamicResource MaterialDesign.Brush.Primary}" />
988-
<Setter Property="IsMoveToPointEnabled" Value="True" />
988+
<!--
989+
When IsMoveToPointEnabled is true, additional code is being executed before the actual "base.OnPreviewMouseLeftButtonDown(e);"
990+
in which the event is marked as handled, i suspect this is the issue, see:
991+
https://source.dot.net/#PresentationFramework/System/Windows/Controls/Slider.cs,771
992+
-->
993+
<Setter Property="IsMoveToPointEnabled" Value="False" />
989994
<Setter Property="IsSnapToTickEnabled" Value="True" />
990995
<Setter Property="Orientation" Value="Horizontal" />
991996
<Setter Property="SnapsToDevicePixels" Value="False" />

0 commit comments

Comments
 (0)