Software Geek

March 25, 2008

Single source code base for Silverlight and WPF solutions

Filed under: Software

At Mix08 , several people asked me about the possibility of creating a single source base for both WPF and Silverlight.  The scenario folks had in mind was to provide a reach solution with Silverlight that hits *ALL* possible users while also offering a really rich solutions for some users on full WPF (.NET Framework 3.0 or 3.5). 

This is a clear benefit of the Microsoft Ux platform.. We have worked hard to get a smooth continuum between WPF and Silverlight… Basically if it works in Silverlight you should be pretty sure it will work on WPF. 

I was chatting David Anson (one of the developers of the Silverlight 2 controls) and he mentioned that the shipping versions of ListBox and ScrollViewer were written this way!   That is right, to test out the continuum message, David built ListBox and ScrollViewer for Silverlight in such a way that the run (and past unit tests) on both WPF and Silverlight.  

Now, in and of itself, this is not all that interesting, because WPF already has a ListBox and ScrollViewer, but it does serve as a nice test case to demonstrate how you can build controls and applications that work on both Silverlight and WPF. 

Because we shipped the source and unit tests for the Silverlight controls, you can check this out yourself ! 

In addition, David did a nice blog detailing the work he did and why and posted the test project you can try out as well. 

On a related note, be sure to check out the final step of ScottGu’s Silverlight 2 tutorial…  Notice how easy it is for him to make a WPF application out of it.


Live Help Software: Live Chat with Users on your websites. It is FREE !

Also see: DevWeek 2008 Cross Platform Silverlight Demos

Also see: Snippet Compiler update

Also see: TransparentProxy

Also see: Should “Membership Stores” Be Permitted in Redmond’s Manufacturing Park Zone?

Also see: Avoid DevPath

Also see: Merry Christmas Indeed!

Also see: Natural Sorting in C#

Also see: Should “Membership Stores” Be Permitted in Redmond’s Manufacturing Park Zone?

Also see: Natural Sorting in C#

Also see: TransparentProxy

Also see: Generics and .NET

Also see: 2,433 Unread Emails, I feel your pain..

Also see: 2,433 Unread Emails, I feel your pain..

Also see: Prototypes and Java Config with Spring

Also see: Avoid DevPath

Also see: Interested in Artificial Intelligence? What about Wiki’s? Well, now you can have both.

Also see: A first stab at BaseN encoding with a focus on general alphabet encoding.

Also see: Important changes to the BASE element for IE 7

Also see: TransparentProxy

Also see: 2,433 Unread Emails, I feel your pain..

Also see: A Couple of My Rules for Startups

tp://blogs.msdn.com/aggbug.aspx?PostID=8145264″ width=”1″ height=”1″>
http://blogs.msdn.com/brada/archive/2008/03/11/single-source-code-base-for-silverlight-and-wpf-solutions.aspx

Comments »

The URI to TrackBack this entry is: http://annil12.blogsome.com/2008/03/25/single-source-code-base-for-silverlight-and-wpf-solutions-2/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Get free blog up and running in minutes with Blogsome
Theme designed by Jay of onefinejay.com