I keep getting this exception whenever I try to bind Range I get this exception:
e.ExceptionObject {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.FrameworkElement.OnLayoutUpdated(Object sender, EventArgs e)
at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)} System.Exception {System.NullReferenceException}
Here is the XAML:
<ig:XamZoombar
Name="ZoomBar"
Style="{StaticResource ZoomZoomBarStyle}"
Maximum="{Binding Path=ZoomBarRange.End,
Converter={StaticResource DateTimeToOADateConv},
Mode=OneWay}"
Minimum="{Binding Path=ZoomBarRange.Start,
SmallChange="{Binding Path=SelectedZoomLevel.Span.TotalDays}"
LargeChange="{Binding Path=SelectedZoomLevel.Span.TotalDays}"
Range="{Binding Path=Range,
Converter={StaticResource TimeRangeToIGRangeConv},
Mode=TwoWay}" />
If I comment out the Range attribute the exception goes away. I placed a breakpoint in both the getter and the setter for Range and ZoomBarRange. Neither of them are ever hit before the exception is thrown. Is this a bug in the ZoomBar?
Hi,
Try looking at this forum post:
https://es.infragistics.com/community/forums/f/retired-products-and-controls/54966/range-binding
That doesn't help. In fact, I'm the person who found that bug and posted it on the forum in the first place. That bug has been fixed but this is something new.
Hello,
Did you have a chance to test the sample?
Valerie
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I created a zoom bar and bound the range both to the zoom bar range property and also bound the range using the zoombar.range minimum and maximum properties.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using version NetAdvantage for Silverlight Data Visualization 2011 Vol 1.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
is it possible to send me a small sample so I can reproduce this issue?