Microsoft Client Continuum in action: The Silverlight toolkit charts, running in WPF

Jaime Rodriguez
On Windows Phone, Windows Presentation Foundation, Silverlight and Windows 7

Microsoft Client Continuum in action: The Silverlight toolkit charts, running in WPF

Rate This
  • Comments 17

The Silverlight toolkit CTP released at PDC includes some new charting functionality  (Column, Bar, Pie, Line, and Scatter).   
The long-term plan is for all of these controls to be ported to WPF; but inspired by Rudi’s work on porting the themes, I peeked into the task to see if the Microsoft continuum would hold for the controls too.

The results were darn good, I had the charts project compiled in WPF in ~20 mins; and after that, I only had to make a few run-time tweaks to get the project running… ( look for the #WPF  pre-processor in the code..   there is only a handful).

Since the charting library is an early "preview" quality, I will probably not do a full port or any testing, but in case some one wants to carry it further, the source code is here..  

Screenshot follows…  These are the same charts as in the SL Toolkit sample but running in a WPF app (named Window1 for Rob)..

WPFSLCharts

  • It works fine for me.

    Add reference to dll build from CControls project (WPF project)  and not original 'Controls.DataVisualization' silverlight project and it should work fine.

    To Jamie,

    Thanks so much for porting datavisualization toolkit to WPF.

    Do you have latest Silverlight December 2008 toolkit ported for WPF too ? Looking forward to it.

  • I added dll from CControls and this simple xaml:

    <charting:Chart Title="Prices">

    <charting:Chart.Series>

    <charting:LineSeries ItemsSource="{Binding prices}"

    IndependentValueBinding="{Binding Date}"

    DependentValueBinding="{Binding Value}" />

    </charting:Chart.Series>

    </charting:Chart>

    the same collection is bound to DataGrid and it works fine. However now I get an exception with the following text

    Could not load file or assembly 'WPFToolkit, Version=3.5.31016.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Page 2 of 2 (17 items) 12