Take the 2-minute tour ×

We're working on a Windows Phone 7 prototype application and we need a Graphing/Charting control to work with. We looked at the Silverlight Toolkit, which has some controls that look like they would work great. However, we can't get that to work. Whenever we add a control to the XAML from that toolkit, it will throw an exception when trying to load the XAML at runtime, even though it appears to work in the designer. I think that it's because there's some dependencies that the phone doesn't actually support.

Does anyone know how to fix the problem or know of charting software that works on Windows Phone 7?

Here's an example of code that doesn't work. We downloaded and installed the 4.0 beta of Silverlight Toolkit. Added the DLL as a reference. Added this to import the namespace:


then added this to make a chart:


the designer shows the pie perfectly, however when I try to compile and deploy it throws an exception saying that it can't find the MainPage.xaml. Which leads me to believe that MainPage.xaml isn't compilign correctly (not sure, as I'm still a newbie at Silverlight)

Here's the exception:

System.Windows.Markup.XamlParseException occurred
  Message=2255 An error has occurred. [Line: 36 Position: 2]

on this line:

System.Windows.Application.LoadComponent(this, new System.Uri("/Twitpic;component/MainPage.xaml", System.UriKind.Relative));
share|improve this question

9 Answers 9

up vote 2 down vote accepted

It looks like someone else has had the same issue as you and solved it by using the Silverlight Toolkit version 3


share|improve this answer
This is actually what I ended up doing forever ago, so I changed the answer. –  Joel Nov 12 '10 at 20:07

You can probably reuse some of the things provided by the silverlight toolkit, which is open source:

You might have to recompile some stuff against the win phone APIs, but it should work :-)

share|improve this answer
+1, or given a little time I'm sure the toolkit team will get round to doing that for you. –  AnthonyWJones Apr 13 '10 at 7:25
I tried that with the WrapPanel before posting this question while messing with some otherthings. But it didn't work. But I'll try again with the charts that we need for this, and post again and let you know how it works out. Thanks –  Joel Apr 13 '10 at 17:18
Unfortunately, I am unable to get it compiled and running using the Windows Phone 7 SDK. Maybe it's only me, but I'm getting the impression that it's not possible without updating the code. –  Joel Apr 13 '10 at 22:06
That's a shame ... hopefully that team will follow up soon with wp7 compatible versions –  Joel Martinez Apr 14 '10 at 0:02

Just found these free WP7 charts: amCharts for Windows Phone 7

share|improve this answer

If you are looking for great charting on WP7, I suggest Visifire. Note that its a commercial offering. Has gesture support too! I've seen very less charting vendors who've optimized charting for mobile-form-factor like these guys do.

You can try MS Toolkit, if you are looking for free basic charts.

share|improve this answer

Playing around more, I was actually able to get Visifire to work. Just had to browse and add the reference to System.Windows.Browser. I don't know if this is the best way to make it work. But it'll do until the Silverlight Toolkit gets updated.

share|improve this answer

Macadamian team developed and gives for free a Chart Control. You can pick it up at http://themobileexperience.macadamian.com/2010/05/chart-control-for-windows-phone-7.html


share|improve this answer

Just a quick plug for my own graph control I recently released to open source:

Check it out, it scales to hundreds of thousands of points and responds to pinch,zoom,translate and tap gestures:


share|improve this answer

This one too


share|improve this answer

Your Answer


