Hi,
I've added to my solution a custom theme based on the summer theme.
It all works well with other controls, but when I render out a Chart control it throws an exception:
{System.Windows.ApplicationUnhandledExceptionEventArgs}
base {System.EventArgs}: {System.Windows.ApplicationUnhandledExceptionEventArgs}
ExceptionObject: {MS.Internal.WrappedException: [Line: 0 Position: 0] ---> System.Windows.Markup.XamlParseException: [Line: 0 Position: 0] ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
ב System.Windows.Duration.get_TimeSpan()
ב Telerik.Windows.Controls.Charting.BaseChartItem2D.ConfigureLinearLabelAnimation(Storyboard storyboard)
ב Telerik.Windows.Controls.Charting.BaseChartItem2D.ConfigureLabelAnimation(Boolean shouldApplyAnimation)
ב Telerik.Windows.Controls.Charting.BaseChartItem2D.ShowLabel(Boolean shouldApplyAnimation)
ב Telerik.Windows.Controls.Charting.BaseChartItem2D.ShowLabelWithAnimation()
ב Telerik.Windows.Controls.Charting.BaseChartItem2D.OnApplyTemplate()
ב Telerik.Windows.Controls.Charting.BasePointMarkChartItem.OnApplyTemplate()
ב System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
ב MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
ב MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
ב MS.Internal.XcpImports.FrameworkElement_ApplyTemplate(FrameworkElement frameworkElement)
ב System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.GetElementRoot(Boolean templatesAreGenerated)
ב System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.Load()
ב System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
ב System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex, DependencyObject container, Boolean needPrepareContainer)
ב System.Windows.Controls.ItemsControl.AddContainers()
ב System.Windows.Controls.ItemsControl.RecreateVisualChildren(IntPtr unmanagedObj)
Handled: false
Any ideas ?
Thanks
Ariel
I've added to my solution a custom theme based on the summer theme.
It all works well with other controls, but when I render out a Chart control it throws an exception:
{System.Windows.ApplicationUnhandledExceptionEventArgs}
base {System.EventArgs}: {System.Windows.ApplicationUnhandledExceptionEventArgs}
ExceptionObject: {MS.Internal.WrappedException: [Line: 0 Position: 0] ---> System.Windows.Markup.XamlParseException: [Line: 0 Position: 0] ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
ב System.Windows.Duration.get_TimeSpan()
ב Telerik.Windows.Controls.Charting.BaseChartItem2D.ConfigureLinearLabelAnimation(Storyboard storyboard)
ב Telerik.Windows.Controls.Charting.BaseChartItem2D.ConfigureLabelAnimation(Boolean shouldApplyAnimation)
ב Telerik.Windows.Controls.Charting.BaseChartItem2D.ShowLabel(Boolean shouldApplyAnimation)
ב Telerik.Windows.Controls.Charting.BaseChartItem2D.ShowLabelWithAnimation()
ב Telerik.Windows.Controls.Charting.BaseChartItem2D.OnApplyTemplate()
ב Telerik.Windows.Controls.Charting.BasePointMarkChartItem.OnApplyTemplate()
ב System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
ב MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
ב MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
ב MS.Internal.XcpImports.FrameworkElement_ApplyTemplate(FrameworkElement frameworkElement)
ב System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.GetElementRoot(Boolean templatesAreGenerated)
ב System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.Load()
ב System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
ב System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex, DependencyObject container, Boolean needPrepareContainer)
ב System.Windows.Controls.ItemsControl.AddContainers()
ב System.Windows.Controls.ItemsControl.RecreateVisualChildren(IntPtr unmanagedObj)
Handled: false
Thanks
Ariel