Sharing Source and Skills – Source download
At the MIX ‘09 conference this year, I presented a talk, “Sharing Skills and Code with Silverlight & WPF“. Here’s the sample application and control source code that was used throughout the talk.
It demonstrates simple concepts for linking files from a Silverlight to WPF project, using partial classes and partial methods, preprocessor directives, and other tools to create projects that work throughout the Microsoft Client Platform.
Silverlight sample application

WPF sample application -100% the same source

Download the samples – Zip, 596 KB
The Zip contains the following work:
- Toolbar control for Silverlight and WPF
- Sample application for the Toolbox
- Continuum application – same XAML and CS shared between a Silverlight and WPF application that uses the DataGrid, charting controls, and our custom Toolbar control
- Value-add code, Awesome.cs, that adds some simple functionality to the WPF application only
Hope this helps.
The download link doesn’t work. Where can I get it? Thanks
Thank you Jeff – this will really help.
Hi Jeff,
The download link does not seem to be working.
This will really help, but only if the source code link works(lol).
http://media.jeff.wilcox.name/blog/mix09/SharingSkillsAndCode.zip
Thanks folks, I’ve corrected the link. Forgot the http prefix!
Thanks Jeff
Hey,
The following DLL shows some error.
Please help me !!!
This is the Dll: SampleControl
@Pritish, could you share some more information about the problem you’re seeing, so that I can help?
Hi Jeff, could you share where we might be able to find the source or .dlls for the WPF counterparts to the Silverlight beta 3 controls?
I’ve tried looking on the codeplex site but have had no luck.
I saw in the sample there was a System.Windows.Controls.DataVisualization.Toolkit for WPF, but no System.Windows.Controls.Data.DataForm, or System.Windows.Controls.Input.
Thanks!
@webster,
Unfortunately, there aren’t WPF counterparts to those beta controls available today. The data visualization work was a proof of concept, but otherwise, there’s nothing new to announce here. Sorry!
I knew it was too good to be true (jk)!
But I’d really like to reuse some of the SL beta 3 controls, at least the AutoCompleteBox.
Since the SL beta 3 source code is available, maybe a quick tutorial could help get some of us started in sharing some of that source and skill over to WPF.