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.
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):
- Identify your Targets
- Lowest Common Denominator
- Portable Class Libraries
- Universal Namespace
- Project Linking
- Conditional Compilation
- Partial Classes
- Cross-Platform Control Libraries
Thanks to everyone who came out to Minneapolis!