Hello, there was a problem when moving Thumb to the specified location. What properties need to be used to make it possible to move to the specified Slider site? As an example: using the standard Slider.
1 answer
Using only one property IsMoveToPointEnabled="True"
, you can move the Thumb
pointing to any place in the Slider
.
<StackPanel Margin="5" Grid.Row="1"> <TextBox Text="{Binding ElementName=slValue, Path=Value, UpdateSourceTrigger=PropertyChanged}" DockPanel.Dock="Right" TextAlignment="Right" Width="40"/> <Slider Maximum="100" IsMoveToPointEnabled="True" TickPlacement="BottomRight" TickFrequency="1" IsSnapToTickEnabled="True" Name="slValue"/> </StackPanel>
|