This is a migrated thread and some comments may be shown as answers.

Charting not working with .NET Core controls?

2 Answers 151 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Iron
Iron
Rob asked on 11 Nov 2019, 12:24 PM

I've followed the 'getting started' documention for the chartview. 

I've created a new WPF .NET Core project. I've then added the following references:

- Telerik.Windows.Controls

- Telerik.Windows.Controls.Chart

- Telerik.Windows.Data

Then I've added the following xaml to the main window xaml file:

<telerik:RadCartesianChart>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis />
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.VerticalAxis>
        </telerik:RadCartesianChart>

 

Nothing shows at all - I've was expecting something/anything before going on to binding a source of data.

What am i missing?

 

I'm using VS 2019 and the latest public version of the .NET Core wpf components.

 

Thank you

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 12 Nov 2019, 07:16 AM

Hello Rob,

This type of issue usually appears when NoXaml dlls are referenced in the project. You can read how to troubleshoot this in the Missing Controls in the UI article.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Rob
Top achievements
Rank 1
Iron
Iron
answered on 12 Nov 2019, 09:36 AM

Thank you - my mistake. I added reference to the theme in the app.xaml file and all works fine.

Many thanks!

Tags
ChartView
Asked by
Rob
Top achievements
Rank 1
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Rob
Top achievements
Rank 1
Iron
Iron
Share this question
or