|
87 | 87 | Background="{TemplateBinding Background}" /> |
88 | 88 | <ControlTemplate.Triggers> |
89 | 89 | <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}" /> |
91 | 91 | </Trigger> |
92 | 92 | <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}" /> |
94 | 94 | </Trigger> |
95 | 95 | <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}" /> |
97 | 97 | </Trigger> |
98 | 98 | <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}" /> |
100 | 100 | </Trigger> |
101 | 101 | </ControlTemplate.Triggers> |
102 | 102 | </ControlTemplate> |
|
249 | 249 | BasedOn="{StaticResource WD.ControlBasicStyle}" |
250 | 250 | TargetType="{x:Type Slider}"> |
251 | 251 | <Setter Property="Stylus.IsPressAndHoldEnabled" Value="False" /> |
| 252 | + <Setter Property="IsMoveToPointEnabled" Value="True" /> |
252 | 253 | <Setter Property="Background" Value="Transparent" /> |
253 | 254 | <Setter Property="BorderBrush" Value="Transparent" /> |
254 | 255 | <Setter Property="SelectionEnd" Value="{Binding RelativeSource={RelativeSource Self}, Path=Value}" /> |
|
0 commit comments