As we all know, up until Windows Phone 8.1, virtually all Windows Phone applications were written with Windows Phone Silverlight. With 8.1, we introduced Windows Runtime (WinRT) XAML.
WinRT XAML, which evolved from Silverlight, first shipped on Windows 8.0. With Windows Phone 8.1 and Windows 8.1 update 1, we now have this same UX framework available on both Windows and Windows Phone devices, which means it is easier than ever for developers to leverage the same code to target multiple device types.
Of course, the first step is to build an application leveraging WinRT XAML. If you've already got an existing Windows Phone Silverlight application, you may not realize how easy it is to bring your application over.
Today we chatted with Steve White, a developer documentation writer at Microsoft who's just published some great docs on exactly how to do this. Steve walked us through the key things you need to know in order to bring your apps over.
Here are some of the key resources we discussed in the talk:
- Move From Windows Phone Silverlight to Windows RT, (note, APIs that are available in Silverlight, but NOT available in XAML Win RT are enumerated on this page.
- Namespace and class mapping
- Porting a Windows Phone Silverlight app to a XAML Win RT app
- Bookstore 1. A case study of porting a very simple Windows Phone Silverlight app to a universal Windows app (using the Windows Runtime, or WinRT)
- Bookstore 2. shows a simple grouped data scenario with LongListSelector and SemanticZoom, respectively. (1) Silverlight project, (2) XAML Win RT project
- Bookstore 3. shows more advanced grouped data scenarios and adds a pivot control and a viewmodel with observable properties and ICommands: (1) Silverlight project, (2) XAML Win RT project
Let us know if you have any feedback!