building universal apps for windows and windows phone

Download Building Universal Apps for Windows and Windows Phone

Post on 17-Jul-2015

713 views

Category:

Technology

1 download

Embed Size (px)

TRANSCRIPT

Windows Phone Application Development

Building Universal Apps for Windows and Windows PhoneJaliya Udagedara

MVP (.NET)1What are we going to discuss today?Current Day TechnologiesWindows Runtime AppsWindows Runtime App DevelopmentUniversal AppsVisual Studio FeaturesIntroduction to Code Sharing StrategiesDemo

22/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.Current Day TechnologiesWindows 8.1 Update 1Windows Phone 8.1.NET 4.5.2 / C# 5.0Visual Studio 2013 Update 4 (Update 5 CTP 2 is available)meanwhile,Windows 10 Technical Preview.NET 4.6 PreviewVisual Studio 2015 CTP 532/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.Windows Runtime Apps42/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.Windows Runtime Apps

Windows Store AppWindows Phone Store AppWindows 8 and Windows Phone 8 : low convergenceWindows 8.1 and Windows Phone 8.1 : high convergence52/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.Windows Runtime Apps cont.Windows Phone 8.1 introduced a change in the Windows Phone developer ecosystemWindows Phone converges with the Windows Store apps platform into a single developer platform that runs the same type of apps

Windows Runtime AppsWindows 8 and Windows Phone 8 : low convergenceWindows 8.1 and Windows Phone 8.1 : high convergence62/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.Areas of convergenceApp model and app life cycleSame execution statesSame events to handle launch, activation and suspension

Manifest, Build, DeploymentSame Windows Store apps .appx bundle deployment formatsSame manifest file format of Windows Store apps

XAMLWindows Phone 8 : XAML is from a different namespace than Windows Store appsWindows Phone 8.1 : XAML UI framework is same as in Windows Store appsManifestA manifest is a set of metadata that describes the assembly itself (name, version, required external assemblies, etc.).

72/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.Windows Runtime API

Windows Runtime contains more than 90% of Windows Phone RuntimeSpeak about .NET Native82/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.App ArchitectureSupported Programming LanguagesThere are two sets of APIs.Windows RuntimeC# and XAML (Extensible Application Markup Language)Microsoft Visual Basic and XAMLVisual C++ component extensions (C++/CX) and XAMLC++/CX and Microsoft DirectXWindows Library for JavaScriptJavaScript, HTML5 and cssApp model architectureEach programming language has a corresponding app model

Hybrid programming languages are supported.92/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.Windows Runtime App Development102/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.Required ToolsWindows 8.1 : Visual Studio 2013 or higherWindows Phone 8.1 : Visual Studio 2013 (Update 2 or later)

By the way,Windows 8 : Visual Studio 2012 or higherWindows Phone 8 : Visual Studio 2012 (Update 2 or later)112/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.Universal Apps122/5/2015 9:31 AM 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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 p