How do I use the library in my solution?

Jan 23, 2013 at 4:33 AM

Hi Torman,


I need to use these controls in my silverlight app. How do I put them in my xaml?




Jan 23, 2013 at 12:01 PM
Edited Jan 24, 2013 at 11:57 AM



Im using the controls perfectly in my xaml, but how do I create the series or  how do I pass to ItemSource my values, as an example, a KeyValuePair list.



Jan 25, 2013 at 7:37 AM

You find a working sample in the source code.

Take a look into Project "TestApplication.Shared/ViewModel/TestPageViewModel.cs". Here you find a sample, how to create a series and add data to it.

Hope it helps.

Kind regards,


Jan 25, 2013 at 1:25 PM



But I can't find how the controls are declared. I'm missing something.

I declared like this:


<metrochart:ChartArea x:Name="mcChart" Width="395" Height="240" 
			Grid.Row="0" Grid.Column="1" 
			Style="{StaticResource PieChartChartAreaStyle}">
<metrochart:PieChart ChartTitle="Title" 
                     Width="395" Height="240"/>


Thanks for you answer, but I really need to know how I will declare the controls that I want and how to I fill them with my data.

What I'm trying to do is, put a pie and some bar charts inside a xaml page and then fill them with my data that that comes from page .cs


Im used to put a control in a page and then point it ItemSource so a IEnumerable, like a Dictionary or other collections...


Best Regards