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
295
Custom Zoombar PreviewContent
posted

Hi,

 

I am trying to set the Zoombar preview content as following. Getting Error because timeline zoombar is null.

xaml:

 <igControls:XamWebZoombar Name="Zoombar" Height="35" Grid.Row="1">  </igControls:XamWebZoombar> 

 

Codebehind:

DateTimeAxis zoomBarAxis = new DateTimeAxis()

            {

                Minimum = timeBegin,

                Maximum = timeEnd,

                AutoRange = false,

                Unit = 10,

                UnitType = DateTimeUnitType.Minutes,

                ShowLabelsInPreview = true,

                ShowMajorTickMarks = true,

                ShowLabels=true,

                ShowMinorTickMarks=true                

            };

 

 

 XamWebTimeline tempTimeLine = new XamWebTimeline();

            tempTimeLine.Axis = zoomBarAxis;

           Zoombar.Range.FromScaleScroll(zoomBarAxis.ScrollScale, zoomBarAxis.ScrollPosition);

            Zoombar.HorizontalPreviewContent = tempTimeLine.Zoombar.HorizontalPreviewContent;

 

 

How can I see the Scale and Preview content for a zoombar which is independent of timelines?

 

Thanks,

Kola