I have some strange issue. I have added theme in app.xaml file and used that theme in my chart display from the code behind. Its working fine for some chart. But get below mentioned exception for below mentioned charts:
- LineSeriesDefinition
- StackedLineSeriesDefinition
- StackedAreaSeriesDefinition
- SplineAreaSeriesDefinition
- StackedSplineAreaSeriesDefinition
Exception:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Mon, 4 Jul 2011 07:19:06 UTC
Message: Unhandled Error in Silverlight Application
Code: 4004
Category: ParserError
Message: System.Windows.Markup.XamlParseException: [Line: 0 Position: 0] ---> System.Windows.Markup.XamlParseException: Failed to assign to property 'System.Windows.Shapes.Path.Data'. [Line: 2993 Position: 36]
at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
at MS.Internal.XcpImports.FrameworkElement_ApplyTemplate(FrameworkElement frameworkElement)
at System.Windows.Controls.Control.ApplyTemplate()
at Telerik.Windows.Controls.ItemsControlExtensions.GetItemsPanelRecursive[TPanel](DependencyObject control)
at Telerik.Windows.Controls.ItemsControlExtensions.GetItemsPanel[TPanel](DependencyObject itemsControl)
at Telerik.Windows.Controls.Charting.ItemsControlExtensions.InvalidateItemsPanelMeasureRecursive(ItemsControl control)
at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeSeriesGeometry()
at Telerik.Windows.Controls.Charting.SelfDrawingSeries.OnApplyTemplate()
at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
--- End of inner exception stack trace ---
at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
at MS.Internal.XcpImports.FrameworkElement_ApplyTemplate(FrameworkElement frameworkElement)
at System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.GetElementRoot(Boolean templatesAreGenerated)
at System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.Load()
at System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
at System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex, DependencyObject container, Boolean needPrepareContainer)
at System.Windows.Controls.ItemsControl.AddContainers()
at System.Windows.Controls.ItemsControl.RecreateVisualChildren(IntPtr unmanagedObj)
File:
Line: 2993
Position: 36
Line: 56
Char: 13
Code: 0
URI: http://localhost:49940/TeletikRadChartTestPage.aspx
If i set that theme as IsApplicationTheme="True" then its working fine. But I do not want to use it as my default theme for application.
Please give me ur response for the same ASAP.
Thanks,
Projects