280 likes | 291 Views
Share code on Windows Phone 8 and Windows 8. Andrew Byrne, Senior P rogramming Writer, Windows Phone Doug Rothaus, Senior Programming Writer, Windows 3-043 How to Leverage your C ode across Windows Phone 8 and Windows 8. Agenda. O pportunity Developer choice Sharing strategies
E N D
Share code on Windows Phone 8 and Windows 8 • Andrew Byrne, Senior Programming Writer, Windows Phone • Doug Rothaus, Senior Programming Writer, Windows • 3-043 How to Leverage your Code across Windows Phone 8 and Windows 8
Agenda • Opportunity • Developer choice • Sharing strategies • Demos (code)
Reach: Over 400 Million Customers • 191 Markets Worldwide
Compelling apps More connected, more personal Personal & Familiar Alive & Up-to-date Connected Work & Play
Windows Phone API Windows Phone 8 Windows Phone 7.x Windows Phone Runtime Direct3D, XAudio2, MF, WASAPI, WIN32, COM .NET C++ C#, VB C#, VB, C++
Demo • PixPresenter
Strategies for sharing in a XAML app Separate UI from app logic (Model-View-ViewModel) Share portable .NET code in Portable Class Library Use common Windows Runtime API (Add as Link) Language interop using Windows Runtime Components
Separate UI from app logic User Interface App Logic Model-View-ViewModel (MVVM) General
Separate UI from app logic Windows Phone app Windows Store app
One Source One Project One Binary Multiple Platforms! Portable Class Libraries
What’s portable in PixPresenter? Platform-specific Portable /shareable Platform-specific Windows Phone app Windows Store app
Investment in Windows Runtime API Networking Proximity In-App Purchase Sensors Location File System Core app model Threading
Great for language interoperability Great for wrapping computationally intensive operations Great for consuming 3rd party libraries Reuse native code in XAML app
Share code – architect with sharing in mind Maximize the user experience in the UI Use existing skills and knowledge Lessons Learned
Strategies for Sharing in a XAML app Separate UI from app logic (Model-View-ViewModel) Share portable .NET code in Portable Class Library Use common Windows Runtime API (Add as Link) Language interop using Windows Runtime Components
Windows Phone 8 docs Windows 8 docs Samples dev.windowsphone.com dev.windows.com code.msdn.com ` Resources Windows Phone 8 and Windows 8 app development on MSDN http://aka.ms/ShareCode
In summary Huge opportunity Platforms are converging The time is right. Start building!
Q & A http://aka.ms/ShareCode