Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
AutoRange for the XamTimeline control doesn't seem to be working
posted

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