The behavior I'm expecting is this:
http://help.infragistics.com/Help/Doc/WPF/2015.1/CLR4.0/html/xamTimeline_Auto_Adjust_Labels.html
Notice how the ZoomBar stays on the date while the axis labels change to hours when zoomed in.
For me, it's just hours all the time. If the range on my timeline is two weeks, all I see on the axis and the zoombar is .
12:00 AM 12:00 AM 12:00 AM 12:00 AM 12:00 AM 12:00 AM 12:00 AM 12:00 AM 12:00 AM 12:00 AM 12:00 AM 12:00 AM 12:00 AM
Code:
<Grid> <ig:XamTimeline Grid.Row="1" EventTitleBottomStyle="{StaticResource bottomStyle}" > <!--Series="{Binding TimelineSeries, Mode=TwoWay}" EventTitleTopStyle="{StaticResource rscTopTitleStyle}" Series="{Binding TimelineSeries}"--> <ig:ContextMenuService.Manager> <ig:ContextMenuManager x:Name="contextMenuManager"> <ig:ContextMenuManager.ContextMenu> <ig:XamContextMenu> <ig:XamMenuItem Header="Add note" Command="{Binding AddNoteCommand}"> <ig:XamMenuItem.Icon> <Image Source="/Resources/Icons/note_add.png"/> </ig:XamMenuItem.Icon> </ig:XamMenuItem> </ig:XamContextMenu> </ig:ContextMenuManager.ContextMenu> </ig:ContextMenuManager> </ig:ContextMenuService.Manager> <ig:XamTimeline.Axis> <ig:DateTimeAxis ShowLabels="True" AutoRange="True" ShowThumb="True" ShowMajorTickMarks="True" ShowMinorTickMarks="True" ScrollScale="1.0" ScrollPosition="0.0"/> </ig:XamTimeline.Axis> <ig:XamTimeline.PreviewAxis> <ig:PreviewAxis ShowLabels="True" /> </ig:XamTimeline.PreviewAxis> <ig:XamTimeline.Series> <ig:DateTimeSeries Position="BottomOrRight" Fill="YellowGreen"> <ig:DateTimeEntry Title="Test1" Time="2/3/2015 12:00 PM"/> <ig:DateTimeEntry Title="Test2" Time="2/14/2015 12:00 PM"/> </ig:DateTimeSeries> </ig:XamTimeline.Series> </ig:XamTimeline> </Grid>
What am I missing here?
Thanks,
-Matt
Just an update. It appears that AutoRange is working after all. At the current width of my timeline I was seeing hours. If I reduce the width, I begin to see dates like "2/4/2016". Also, at the original width if my two test entries were 14 days apart then I would begin to see the dates.
Hi Matt,
Glad to hear you were able to get functionality you need. Do you need any additional help with this case?
Thanks
Todor
No, I guess this behavior is acceptable. The timeline can be a little confusing sometimes when it's displaying multiple days if the labels only show hours. You have to ask, "Is this 12:00PM on 2/2 or 2/3?" It's alright, though.
you can set the timeline axis properties as follow
<ig:DateTimeAxis ShowLabels="True" AutoRange="False" Minimum="2/2/2015" Maximum="2/15/2015" UnitType="Days" Unit="1"
In this case you will see dates in the axis labels