Hi,
I'm trying to use SfRangeSlider to select a time. Internally, this is stored as a double, as a difference between DateTime.Now and the picked time.
I then use CustomLabels to map this back to an actual wall clock. Looks like this:
So, right now, it is 12:45, and I'm picking a value 15 minutes ahead of that, 13:00 (or T+15).
There's multiple problems here:
- I want that value to always be visible, not just in a tooltip.
- I want to apply the same custom label to the value. But I don't want every single major tick to have a label; that would take up way too much visual space. So in this particular example, I want to only see labels for 12:15, 13:00 (because I've picked it), 14:15, 15:15. The 14:00 one should be skipped because it would take up too much space.
- I want these labels to be centered horizontally (i.e., T-30, etc. should be pushed slightly to the right). I tried setting the style of TickBarItem, but that didn't quite work:
<Style TargetType="sf:TickBarItem">
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>
This will look like: