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
450
NullReferenceException in designer
posted

Hi. I have a XamZoombar in my charting app and it appears to be causing a NullReferenceException at design time. Stack trace is below. My ZB contains a secondary chart as its HorizontalPreviewContent. The ZB Range is bound to my primary chart (xamDataChart1) as follows. If I remove this binding the designer loads correctly:

Range="{Binding ElementName=xamDataChart1, Path=HorizontalZoombar.Range, Mode=TwoWay}"

Regards

HtD

 

System.NullReferenceException
Object reference not set to an instance of an object.
   at Infragistics.Controls.XamZoombar.UpdateThumb(Range range)
   at Infragistics.Controls.XamZoombar.UpdateThumb()
   at Infragistics.Controls.XamZoombar.UpdateElementPositions()
   at Infragistics.Controls.XamZoombar.SizeUpdated()
   at Infragistics.Controls.XamZoombar.XamZoombar_LayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.UIElement.UpdateLayout()
   at Infragistics.Controls.XamZoombar.UpdateElementPositions()
   at Infragistics.Controls.XamZoombar.HorizontalRootCanvas_SizeChanged(Object sender, SizeChangedEventArgs e)
   at System.Windows.SizeChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)
   at System.Windows.ContextLayoutManager.fireSizeChangedEvents()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.UIElement.UpdateLayout()
   at System.Windows.Interop.HwndSource.SetLayoutSize()
   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   at MS.Internal.DeferredHwndSource.ProcessQueue(Object sender, EventArgs e)