share code on windows phone 8 and windows 8

28

Upload: nikita

Post on 13-Feb-2016

63 views

Category:

Documents


2 download

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 Presentation

TRANSCRIPT

Page 1: Share code on Windows Phone 8 and Windows 8
Page 2: Share code on Windows Phone 8 and Windows 8

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

Page 3: Share code on Windows Phone 8 and Windows 8

OpportunityDeveloper choiceSharing strategiesDemos (code)

Agenda

Page 4: Share code on Windows Phone 8 and Windows 8

Reach: Over 400 Million Customers191 Markets Worldwide

Page 5: Share code on Windows Phone 8 and Windows 8

Compelling apps

Personal & Familiar Alive & Up-to-date Connected Work & Play

More connected, more personal

Page 6: Share code on Windows Phone 8 and Windows 8

We are on the path to Windows

and Windows Phone Convergence

Page 7: Share code on Windows Phone 8 and Windows 8

.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++

Page 8: Share code on Windows Phone 8 and Windows 8

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

Page 9: Share code on Windows Phone 8 and Windows 8

PixPresenterDemo

Page 10: Share code on Windows Phone 8 and Windows 8

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

Page 11: Share code on Windows Phone 8 and Windows 8

Separate UI from app logic User Interface

App Logic

General Model-View-ViewModel (MVVM)

Page 12: Share code on Windows Phone 8 and Windows 8

Separate UI from app logic

Windows Phone app Windows Store app

Page 13: Share code on Windows Phone 8 and Windows 8

One SourceOne ProjectOne Binary

Multiple Platforms!

Portable Class Libraries

Page 14: Share code on Windows Phone 8 and Windows 8

Portable Class Library and MVVM

Page 15: Share code on Windows Phone 8 and Windows 8

What’s portable in PixPresenter?Platform-specific

Portable /shareable

Platform-specific

Windows Phone app Windows Store app

Page 16: Share code on Windows Phone 8 and Windows 8

MVVM and Portable Class Library

Page 17: Share code on Windows Phone 8 and Windows 8

Invoking non-portable code

Page 18: Share code on Windows Phone 8 and Windows 8

Handling non-portable code

Page 19: Share code on Windows Phone 8 and Windows 8

Use common Windows Runtime API

Page 20: Share code on Windows Phone 8 and Windows 8

Investment in Windows Runtime API

NetworkingProximityIn-App PurchaseSensorsLocationFile SystemCore app modelThreading

Page 21: Share code on Windows Phone 8 and Windows 8

Windows Runtime Component

Page 22: Share code on Windows Phone 8 and Windows 8

Reuse native code in XAML appGreat for language interoperabilityGreat for wrapping computationally intensive operations Great for consuming 3rd party libraries

Page 23: Share code on Windows Phone 8 and Windows 8

Lessons LearnedShare code – architect with sharing in mindMaximize the user experience in the UIUse existing skills and knowledge

Page 24: Share code on Windows Phone 8 and Windows 8

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

Page 25: Share code on Windows Phone 8 and Windows 8

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

Page 26: Share code on Windows Phone 8 and Windows 8

In summaryHuge opportunity

Platforms are convergingThe time is right. Start building!

Page 27: Share code on Windows Phone 8 and Windows 8

Q & A

http://aka.ms/ShareCode

Page 28: Share code on Windows Phone 8 and Windows 8

© 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.