We're currently using RadHorizontalDataAxis for a media-scrubber-like application like so.
1.
<
telerik:RadHorizontalDataAxis
x:Name
=
"FrameAxis"
Grid.Row
=
"0"
Panel.ZIndex
=
"1"
2.
Stroke
=
"DarkRed"
Foreground
=
"Gray"
SizeChanged
=
"FrameAxis_SizeChanged"
3.
Minimum
=
"{Binding Path=FirstValue, Source={x:Static local:MyEditorViewModel.Instance}, Mode=OneWay}"
4.
Maximum
=
"{Binding Path=Duration, Source={x:Static local:MyEditorViewModel.Instance}, Mode=OneWay}"
/>
The result looks like the attached image. The mess at the end is because there is a tick mark at 12 and then at 12.00000048877 (the Duration, and a correct value).
1) I'd like the axis to be smarter about ticks marks near the end. In this sample, either only showing 12 or only showing 12.00000048877 would be desirable, but not both. It looks like ChartView.LinearAxis has a SmartLabelsMode property that can do what we want. However, is LinearAxis usable in a loose fashion, that is, without a ChartView? Basic attempts to use it by itself weren't successful.
1) For application-specific purposes, I'd like to have some different stops at the ends. I'd like to see "Start" at the beginning, then 0 followed by some number of other autogenerated ticks, followed by "End" at the end. So, in the example, I'd like to see axis labels of "Start, "0", "4", "8", "12", and "End". This seems like a mixture of categorical labels and smart/data-driven labels. Any options for this?
1) Is there a better axis we should be using?
We don't particularly need a ChartView, but I ask this here since ChartView seems to be where all the axes fall. If there's a better forum in which to ask, please let me know.