I've been trying to set the TickTemplate of the RadSlider component like the following:
And then, in the resources:
However, this doesn't appear to work. I finally got it working by using the TickTemplateSelector, like in the sample application, but that seems far from ideal. Is this a known bug, or am I doing something wrong?
<telerikbase:RadSlider | |
TickTemplate="{StaticResource RadTickTemplate}" | |
Ticks="{Binding CustomDataPredefinedValues}" | |
TickPlacement="TopLeft" | |
TickFrequency="1" | |
IsSnapToTickEnabled="True" | |
IsMoveToPointEnabled="True" | |
SmallChange="1" LargeChange="1"> | |
</telerikbase:RadSlider> |
And then, in the resources:
<DataTemplate x:Key="RadTickTemplate"> | |
<Rectangle Width="5" Height="6" Fill="Black"></Rectangle> | |
</DataTemplate> |
However, this doesn't appear to work. I finally got it working by using the TickTemplateSelector, like in the sample application, but that seems far from ideal. Is this a known bug, or am I doing something wrong?