How do I use the library in my solution?

Jan 23, 2013 at 3:33 AM

Hi Torman,

 

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

 

Regards,

Vitor

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

Sorry,

 

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.

 

HELP!!!

Coordinator
Jan 25, 2013 at 6: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.

http://modernuicharts.codeplex.com/SourceControl/changeset/view/97971#1822330

Hope it helps.

Kind regards,

Torsten

Jan 25, 2013 at 12:25 PM

Ok, 

 

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:ChartSeries>
<metrochart:PieChart ChartTitle="Title" 
                     Width="395" Height="240"/>
</metrochart:ChartSeries>
</metrochart:ChartArea>

 

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