This question is locked. New answers and comments are not allowed.
Since updating to version 2011 Q1 of the Silverlight controls I've been experiencing intermittent crashes when the chart rebinds to new data. The following stack is produced...
System.Windows.Markup.XamlParseException: [Line: 0 Position: 0] ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeTopBorderLineGeometry()
at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeSeriesGeometry()
at Telerik.Windows.Controls.Charting.SelfDrawingSeries.OnApplyTemplate()
at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
Although I'm not sure this is where the error originates, we're customizing the line and area series by setting the SeriesStyle to something similar to...
Thanks,
Raj
System.Windows.Markup.XamlParseException: [Line: 0 Position: 0] ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeTopBorderLineGeometry()
at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeSeriesGeometry()
at Telerik.Windows.Controls.Charting.SelfDrawingSeries.OnApplyTemplate()
at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
Although I'm not sure this is where the error originates, we're customizing the line and area series by setting the SeriesStyle to something similar to...
<Style x:Key="AreaStyle" TargetType="telerikCharting:SelfDrawingSeries"> <Setter Property="BorderLineStyle"> <Setter.Value> <Style TargetType="Shape"> <Setter Property="Stroke" Value="#d59626" /> <Setter Property="StrokeThickness" Value="2" /> </Style> </Setter.Value> </Setter> <Setter Property="BackgroundStyle"> <Setter.Value> <Style TargetType="Shape"> <Setter Property="Fill" Value="#d59626" /> <Setter Property="Opacity" Value="0.3" /> </Style> </Setter.Value> </Setter> </Style>
Have the structure of these styles changed from the previous version? This may not be the issue so if you have any other recommendations I would truly appreciate it.Thanks,
Raj