I recently updated my copy of Blend to the latest Silverlight 5 preview and am now having "blendability" issues with RadChart data binding. I am running the latest version of Silverlight 5 RC and the Telerik SL controls.
This did not occur before I updated Blend. The project builds and runs fine in VS2010. This problem only occurs in Blend 4.1.10819.0.
The specific design-time error that I get is:
I thought perhaps it was my code that was causing the issue, so I created a new Telerik Silverlight RadControls project from VS and copied the PieChart code from the demo, which binds the chart to a view model.
I suspected that the problem was due to MVVM-style data binding, so I initially set the data source declaratively in XAML. No problem. It built and ran fine in Blend.
However, when I converted it to MVVM as in the demo, I get the exception. Any ideas what's going on?
This did not occur before I updated Blend. The project builds and runs fine in VS2010. This problem only occurs in Blend 4.1.10819.0.
The specific design-time error that I get is:
Method not found: 'System.Delegate System.Reflection.MethodInfo.CreateDelegate(System.Type, System.Object)'.
at System.Linq.Expressions.Compiler.LambdaCompiler.CreateDelegate()
at System.Linq.Expressions.Compiler.LambdaCompiler.Compile(LambdaExpression lambda, DebugInfoGenerator debugInfoGenerator)
at Telerik.Windows.Controls.Charting.DataBindingHelper.CreateExpressionGetter(Type itemType, String propertyName)
at Telerik.Windows.Controls.Charting.DataBindingHelper.RecreateExpressionGetters(IEnumberable`1 descriptors)
at Telerik.Windows.Controls.Charting.DataBindingHelper.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ISeriesDefinition defaultSeriesDefinition, ...)
at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ChartArea chartArea)
at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData)
at Telerik.Windows.Controls.RadChart.Rebind(Object originalData)
at Telerik.Windows.Controls.RadChart.InternalRebind()
at Telerik.Windows.Controls.RadChart.OnApplyTemplate()
at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
I thought perhaps it was my code that was causing the issue, so I created a new Telerik Silverlight RadControls project from VS and copied the PieChart code from the demo, which binds the chart to a view model.
I suspected that the problem was due to MVVM-style data binding, so I initially set the data source declaratively in XAML. No problem. It built and ran fine in Blend.
However, when I converted it to MVVM as in the demo, I get the exception. Any ideas what's going on?