Hi All,
I'm using more or less default setup of the XamTimeLine, just having a Metro theme on top, setting up my text in the event title and customizing some colors.
I use the numeric double values for the Time and Duration of the events. The values are rounded to 2 decimal places before assignment to the properties (that are bound to the NumericTimeSeries in a pretty straigtforward way: DataMapping="Time=Start;Title=Title;Details=Title;Duration=Length").
Now my issue is, XamTimeLine makes an internal calculation of the End value of the interval which results in unrounded double value and it is shown on the event title of the event (see screenshot below). Question is, can I somehow round this End value (this is purely cosmetic issue, but pretty annoying).
Thanks a lot in advance!
Kind regards,
Dmitrii
Hello Dmitrii,
I have been investigating into the behavior you are seeing, and I would recommend taking a look at the following documentation articles about formatting numeric values in the XamTimeline control, as I believe it should help you to provide a format to the label: https://es.infragistics.com/help/wpf/xamtimeline-format-numeric-time-values.
Please let me know if you have any other questions or concerns on this matter.
Hi Andrew!
Thanks a lot for a quick and precise finding!
This indeed solves my issue with the event titles. Unfortunatelly it creates another issue
It also affects how the timeline scale is drawn, this means it applies the given format also to the values along the timeline scale (see picture below).
Is there any way to only apply the format to the values inside the event title and to keep the timeline scale without any format?
P.S: I know probably I ask too much, but...
Thanks a lot!