Skip to main content Skip to footer

XAML Cubed: Developing for the Browser, Desktop & Phone

Despite some compatibility issues, it is possible to share code across all 3 platforms in the XAML realm: WPF, Silverlight and Windows Phone. This talk covers 10 tips for multi-targeting which will help prepare you for Windows 8 and WinRT opportunities. I debuted this talk at ComponentOne's Tech Connection Live! Twin Cities.

Recap:

Silverlight & WPF are not dead. They are ideal for developing powerful LOB applications for Windows with amazing tools (Visual Studio, C#), features (templates, data binding, etc), and broad reach (XP, Vista, Mac, Linux, IE, FireFox, Windows Phone). Silverlight, WPF and WP7 are not strict subsets of each other, so the strategy is to share what you can while specializing each platform where it makes sense. 10 tips/best practices for code-sharing (with links to some resources):

  1. Identify your Targets
  2. Lowest Common Denominator
  3. Portable Class Libraries
  4. Universal Namespace
  5. UserControls
  6. Project Linking
  7. MVVM
  8. Conditional Compilation
  9. Partial Classes
  10. Cross-Platform Control Libraries

Download Slides Download Calculator Sample XAML Finance and Twitter Samples Thanks to everyone who came out to Minneapolis!

ComponentOne Product Manager Greg Lutz

Greg Lutz

comments powered by Disqus