This question is locked. New answers and comments are not allowed.
Hello Telerik,
I'll try to explain:
1. I added the binaries (as I can't find the "Radcontrols for Windows 8"):
2. I declare the xmlns:
3. I add the RadPieChart:
4. aaand in the code behind:
5. And when I try to run it, I get the following:
http://img.ctrlv.in/50ce50c590678.PNG
Would any of you Telerik guys know whats wrong?
I'll try to explain:
1. I added the binaries (as I can't find the "Radcontrols for Windows 8"):
Telerik.Core, Telerik.UI.XAML.Charts, Telerik.UI.XAML.DataVisualization, Telerik.UI.XAML.Input and Telerik.UI.XAML.Primitives2. I declare the xmlns:
xmlns:telerik="using:Telerik.UI.Xaml.Controls.Chart"3. I add the RadPieChart:
<telerik:RadPieChart x:Name="pie" PaletteName="DefaultDark" ClipToBounds="False" Width="300" Height="300"> <telerik:PieSeries ItemsSource="{Binding}" ShowLabels="True"> <telerik:PieSeries.ValueBinding> <telerik:PropertyNameDataPointBinding PropertyName="Value"/> </telerik:PieSeries.ValueBinding> <telerik:PieSeries.LabelDefinitions> <telerik:ChartSeriesLabelDefinition> <telerik:ChartSeriesLabelDefinition.Binding> <telerik:PropertyNameDataPointBinding PropertyName="Category" /> </telerik:ChartSeriesLabelDefinition.Binding> </telerik:ChartSeriesLabelDefinition> </telerik:PieSeries.LabelDefinitions> </telerik:PieSeries></telerik:RadPieChart>4. aaand in the code behind:
List<Data> data = new List<Data>();data.Add(new Data { Category = "food", Value = 20 });data.Add(new Data { Category = "travel", Value = 30 });data.Add(new Data { Category = "bills", Value = 50 });this.pie.DataContext = data;5. And when I try to run it, I get the following:
http://img.ctrlv.in/50ce50c590678.PNG
Would any of you Telerik guys know whats wrong?