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

[Solved] Using charts, unknown XAML error won't debug

1 Answer 113 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andreas
Top achievements
Rank 2
Andreas asked on 16 Dec 2012, 10:46 PM
Hello Telerik,

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.Primitives


2. 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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivaylo Gergov
Telerik team
answered on 18 Dec 2012, 12:58 PM
Hello Andreas,

Could you please try to uninstall any previous version of the controls and install the latest service pack - you should be able to find the Extension SDK reference as displayed in this help article:

http://www.telerik.com/help/windows-8-xaml/common-create-application-and-adding-control.html

Please note that if you want to add stand-alone references to your project you should follow the directory structure as defined in the Binaries folder created by the Installer (you may directly add references from there):

C:\Program Files (x86)\Telerik\RadControls for Windows 8 XAML Q3 2012\Binaries

Let me know if this helps you fix the problems.

 

Kind regards,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Chart for XAML
Asked by
Andreas
Top achievements
Rank 2
Answers by
Ivaylo Gergov
Telerik team
Share this question
or