share code on windows phone 8 and windows 8
DESCRIPTION
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 - PowerPoint PPT PresentationTRANSCRIPT
Andrew Byrne, Senior Programming Writer, Windows PhoneDoug Rothaus, Senior Programming Writer, Windows3-043 How to Leverage your Code across Windows Phone 8 and Windows 8
Share code on Windows Phone 8 and Windows 8
OpportunityDeveloper choiceSharing strategiesDemos (code)
Agenda
Reach: Over 400 Million Customers191 Markets Worldwide
Compelling apps
Personal & Familiar Alive & Up-to-date Connected Work & Play
More connected, more personal
We are on the path to Windows
and Windows Phone Convergence
.NET
C#, VB
Windows Phone 7.x
Direct3D, XAudio2, MF,
WASAPI, WIN32, COM
C++
Windows Phone APIWindows Phone 8
Windows Phone Runtime
C#, VB, C++
Your appsYour way
Windows Phone 8 Developer PlatformXAML Apps Direct3D Apps
XAML Maps Geolocation Sensors In-App Purchase Direct3D
HTML XML Threading Touch Speech XAudio2Phone
Features Push Camera Video Proximity Media Foundation
Calendar Wallet Contacts Core Types VoIP STL
Multitasking Live Tiles Memory Async Enterprise CRT
C# and VB C#, VB, and C++ C++File system, Networking, Graphics, Media
Core Operating System
PixPresenterDemo
Strategies for sharing in a XAML appSeparate UI from app logic (Model-View-ViewModel)Share portable .NET code in Portable Class LibraryUse common Windows Runtime API (Add as Link)Language interop using Windows Runtime Components
Separate UI from app logic User Interface
App Logic
General Model-View-ViewModel (MVVM)
Separate UI from app logic
Windows Phone app Windows Store app
One SourceOne ProjectOne Binary
Multiple Platforms!
Portable Class Libraries
Portable Class Library and MVVM
What’s portable in PixPresenter?Platform-specific
Portable /shareable
Platform-specific
Windows Phone app Windows Store app
MVVM and Portable Class Library
Invoking non-portable code
Handling non-portable code
Use common Windows Runtime API
Investment in Windows Runtime API
NetworkingProximityIn-App PurchaseSensorsLocationFile SystemCore app modelThreading
Windows Runtime Component
Reuse native code in XAML appGreat for language interoperabilityGreat for wrapping computationally intensive operations Great for consuming 3rd party libraries
Lessons LearnedShare code – architect with sharing in mindMaximize the user experience in the UIUse existing skills and knowledge
Strategies for Sharing in a XAML appSeparate UI from app logic (Model-View-ViewModel)
Use common Windows Runtime API (Add as Link)Share portable .NET code in Portable Class Library
Language interop using Windows Runtime Components
Resources
Windows Phone 8 docs Windows 8 docs Samples dev.windowsphone.com dev.windows.com code.msdn.com `
Session code Session title Speaker
3-049 Windows Phone 8 Using C++ in your Applications Peter Torr3-046 WP8 Native C/C++ Game Development Sam George3-045 WP8 Critical Dev Practices Stefan Wick3-004 Create Cross-platform Apps using Portable Class
LibrariesDaniel Plaisted
3-006 Designing awesome XAML apps in Visual Studio and Blend for Windows 8 and Windows Phone 8
Jeffrey Ferman
Windows Phone 8 and Windows 8 app development on MSDNhttp://aka.ms/ShareCode
In summaryHuge opportunity
Platforms are convergingThe time is right. Start building!
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.