Skip to content

Commit d2e1e36

Browse files
committed
Fix issue :Update Slider CornerRadius(#170
1 parent 954d34c commit d2e1e36

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/WPFDevelopers.Shared/Styles/Styles.Slider.xaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,16 @@
8787
Background="{TemplateBinding Background}" />
8888
<ControlTemplate.Triggers>
8989
<Trigger Property="RadiusOrientation" Value="Right">
90-
<Setter TargetName="PART_Border" Property="CornerRadius" Value="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource WD.CornerRadiusToSurroundConverter}, ConverterParameter=Right}" />
90+
<Setter TargetName="PART_Border" Property="CornerRadius" Value="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource AncestorType=Slider}, Converter={StaticResource WD.CornerRadiusToSurroundConverter}, ConverterParameter=Right}" />
9191
</Trigger>
9292
<Trigger Property="RadiusOrientation" Value="Left">
93-
<Setter TargetName="PART_Border" Property="CornerRadius" Value="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource WD.CornerRadiusToSurroundConverter}, ConverterParameter=Left}" />
93+
<Setter TargetName="PART_Border" Property="CornerRadius" Value="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource AncestorType=Slider}, Converter={StaticResource WD.CornerRadiusToSurroundConverter}, ConverterParameter=Left}" />
9494
</Trigger>
9595
<Trigger Property="RadiusOrientation" Value="Down">
96-
<Setter TargetName="PART_Border" Property="CornerRadius" Value="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource WD.CornerRadiusToSurroundConverter}, ConverterParameter=Down}" />
96+
<Setter TargetName="PART_Border" Property="CornerRadius" Value="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource AncestorType=Slider}, Converter={StaticResource WD.CornerRadiusToSurroundConverter}, ConverterParameter=Down}" />
9797
</Trigger>
9898
<Trigger Property="RadiusOrientation" Value="Up">
99-
<Setter TargetName="PART_Border" Property="CornerRadius" Value="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource WD.CornerRadiusToSurroundConverter}, ConverterParameter=Up}" />
99+
<Setter TargetName="PART_Border" Property="CornerRadius" Value="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource AncestorType=Slider}, Converter={StaticResource WD.CornerRadiusToSurroundConverter}, ConverterParameter=Up}" />
100100
</Trigger>
101101
</ControlTemplate.Triggers>
102102
</ControlTemplate>
@@ -249,6 +249,7 @@
249249
BasedOn="{StaticResource WD.ControlBasicStyle}"
250250
TargetType="{x:Type Slider}">
251251
<Setter Property="Stylus.IsPressAndHoldEnabled" Value="False" />
252+
<Setter Property="IsMoveToPointEnabled" Value="True" />
252253
<Setter Property="Background" Value="Transparent" />
253254
<Setter Property="BorderBrush" Value="Transparent" />
254255
<Setter Property="SelectionEnd" Value="{Binding RelativeSource={RelativeSource Self}, Path=Value}" />

0 commit comments

Comments
 (0)