LineSeries is not recognized

1 Answer 44 Views
ChartView
Jim
Top achievements
Rank 1
Jim asked on 24 Jul 2023, 07:06 PM

When using version 2023.2.718 targeting .NET 6.0 on VS 2022, I tried to create a RadCartesianChart as described here: https://docs.telerik.com/devtools/wpf/controls/radchartview/multiple-chart-series

The PointSeries and BarSeries are recognized as expected, but LineSeries generates errors that make the designer complain about invalid markup:

The program builds and runs fine.

Anyone have a clue as to what is happening here?

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dinko
Telerik team
answered on 25 Jul 2023, 02:15 PM

Hi Jim,

This error appears when referencing both Telerik.Windows.Controls.Chart and Telerik.Windows.Controls.Charting assemblies in the same project. The difference is that the Chart contains the newer RadChartView component, and the other Charting component contains the old RadChart. 

There are few classes with the same names that are defined in both the Chart and Charting assemblies and are mapped to the "telerik" XAML schema. When you try to use "telerik" to access one of those classes (like LineSeries for example) and error appears. You can take a look at the documentation to see how to fix it.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ChartView
Asked by
Jim
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or