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

Stacked Spline Chart in UWP using c# vs

1 Answer 61 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Zt93
Top achievements
Rank 1
Zt93 asked on 08 Nov 2018, 07:52 AM
Hi, would like to know the difference between <telerikChart:RadChartesianChart> and <telerik:RadChartesianChart>. I am trying to build a stacked spline chart but with the sample downloaded its seems like the packages in Visual Studio are quite different from the example provided. I am unable to produce stacked spline due to keyword problem. Is there any doc where i can reference? telerikChart's from the example downloaded while telerik are my downloaded packages from NuGets.

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 09 Nov 2018, 11:50 AM
Hello,

The difference between <telerikChart:RadCartesianChart/> and <telerik:RadCartesianChart/> is the xmlns namespace. XAML namespaces has standard xmlns attribute to define the namespace. They can also used the name prefixes which provide a means to reference multiple namespace from the same markup source. For more information you could take a look at the following link: https://www.linkedin.com/learning/microsoft-xaml-1-core-concepts/understanding-namespace-mapping

Here is an example  how to add Chart control in your xaml file:
<telerikChart:RadCartesianChart/>

and the following namespace you should use:
xmlns:telerikChart="using:Telerik.UI.Xaml.Controls.Chart"

where: telerikChart is just a name you can give. 

If you want to use telerik instead of telerikChart. Here is an example:
<telerik:RadCartesianChart/>

and the namespace:
xmlns:telerik="using:Telerik.UI.Xaml.Controls.Chart"

I hope I was helpful.

Regards,
Didi
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Zt93
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or