Category / Section
How do I bind the scroll duration of caret with a slider control in XAML?
1 min read
A slider can be bind with the scrollduration property using the Binding class. The following code snippet is used to bind the slider with the scroll duration property.
[XAML]
<Slider x:Name="SliderDuration" IsEnabled="{Binding Path=IsAnimation, ElementName=MyDateEdit}" Orientation="Horizontal" Minimum="0" Maximum="10" SmallChange="0.5" LargeChange="2" Value="1" /> <syncfusionl:DateTimeEdit Name="MyDateEdit" ScrollDuration="{Binding Path=Value, ElementName=SliderDuration}" Width="300">