51
The Universal Windows Platform Developer’s guide for Windows 10 preview Andy & Jerry

Mod01_IntroToUWP asfasdf

Embed Size (px)

DESCRIPTION

Mod01_IntroToUWP Mod01_IntroToUWP Mod01_IntroToUWP Mod01_IntroToUWP Mod01_IntroToUWP Mod01_IntroToUWP Mod01_IntroToUWP Mod01_IntroToUWP Mod01_IntroToUWP Mod01_IntroToUWP heloo adfa aůdkaů jů ckzůhvůailefůl ůaliů aůsdfl ůlzkj fůasi ůaei ůajfůasie ůilas ůfjaůseiů aiseů asjefůaijfeůaifj

Citation preview

The Universal Windows PlatformDevelopers guide for Windows 10 previewAndy & Jerry

http://windows.Microsoft.com1Building a modern, fully-immersive Windows app for the Windows store that targets the common Universal Windows Platform on Windows 10The definitive developers guide for Windows 10 insider previewAndy Wigley esquire & Jerry Nixon, developer executive

http://windows.Microsoft.comA single platformOne WindowsMany devicesDeveloper experienceWindows tooling.Net NativeTemplate 10http://aka.ms/template10

Agendahttp://windows.Microsoft.com

Introducing the UWPhttp://windows.Microsoft.comWindows CoreThe refactored common coreOne hardware platformUniversal hardware driverStandard network and I/OPhoneDeviceXboxDeviceDesktopDeviceWindows CoreDesktopSKUPhoneSKUXboxSKUhttp://windows.Microsoft.comhttp://windows.Microsoft.comEach family adds features to the one it inheritshttp://windows.Microsoft.comEasy for users to get & stay currentUnified core and app platformThe convergence journeyWindows Phone 7.5Windows Phone 8Windows Phone 8.1Windows 8Xbox OneWindows on DevicesXbox 360Windows 8.1Windows 10

ConvergedOS kernelConvergedapp modelhttp://windows.Microsoft.com8PhoneSmall Tablet2-in-1s(Tablet or Laptop)Desktops & All-in-OnesPhabletLarge TabletClassic Laptop

XboxIoTSurface Hub

HolographicWindows 10http://windows.Microsoft.com9Multiple device familiesPCXBoxMobileSurface Hub

HoloLens

Devices +IoT

Universal Windows AppsOne Store +One Dev Center

Reuse Existing CodeOne SDK + Tooling

Adaptive User Interface

NaturalUser Inputs

One Universal Windows Platformhttp://windows.Microsoft.com10Universal Windows PlatformA single API surfaceA guaranteed API surfaceThe same on all devices

PhoneDeviceXboxDeviceDesktopDeviceWindows CoreUniversal Windows Platformhttp://windows.Microsoft.comApps don't target Windows 10, apps target the platformhttp://windows.Microsoft.com

http://windows.Microsoft.com13The Universal Windows Platform can update at its own cadencehttp://windows.Microsoft.comWindows appA single binary Running on any deviceTesting for capabilitiesAdjusting to devicesPhoneDeviceXboxDeviceDesktopDeviceWindows CoreUniversal Windows PlatformWindows App

http://windows.Microsoft.comThe developer storyWhen writing for iOS, A developer writes for iPad & iPhoneWhen writing for Android, A developer writes for all supported devices When writing for Windows 8, A developer writes for each devicesWhen writing for Windows 10, A developer writes for every device

http://windows.Microsoft.com162:05Hello devicesDEMOhttp://windows.Microsoft.com

http://windows.Microsoft.comPlatform extensionsDevice-specific APIFamily-specific capabilitiesCompatible across devicesUnique update cadence

PhoneDeviceXboxDeviceDesktopDeviceWindows CoreUniversal Windows PlatformWindows AppPhoneextensionXboxextensionDesktopextension

http://windows.Microsoft.comExtensions don't invalidate binaries on other deviceshttp://windows.Microsoft.comUniversal Windows PlatformOne Operating SystemOne Windows core for all devicesOne App PlatformApps run across every familyOne Dev CenterSingle submission flow and dashboard One Store Global reach, local monetization Consumers, Business & Education

http://windows.Microsoft.com21Traditional Microsoft technologies are not the only way to create Windows appshttp://windows.Microsoft.com22Windows 10operating systemBridging technologiesWin32desktopWebhostedJavaAndroidObj.CiOSUniversal Windows PlatformWWAC++& CX.NetlanguagesHTMLDirectXXAMLC++.NetlanguagesMFCWFWPF.Netruntimehttp://windows.Microsoft.com23Lets talk about bridge technologiesObjective-CAt Build we announced iOS code can be reused in a Windows appAndroidAt Build we announced Android code can be reused in a Windows app to run on Windows PhoneWebAt Build we announced web sites can be wrapped to run on Windows Win32At Build we announced that Classic Windows Apps (CWA) can be packaged as an Appxhttp://windows.Microsoft.com24Bridges bring more apps to the Windows platformhttp://windows.Microsoft.com25Adaptive designResponsive designFlexible layout responds to small changesMany controls handle basic responsivenessAdaptive designSmart layout adjusts to large changesFeatures like visual states aid in this designTailored designA device-specific app can simplify design Some devices have unique design languageshttp://windows.Microsoft.com26Adaptive designPhone (portrait)Tablet (landscape) / Desktop

http://windows.Microsoft.com 2012 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.5/18/201527Tailored designPhone (portrait)Tablet (landscape) / Desktop

http://windows.Microsoft.com 2012 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.5/18/201528Continuum for Convertibles and Phones

Continuum for convertibles and Phoneshttp://windows.Microsoft.comAdaptive codeA compatible binary across devicesUniversal API with device-specific implementationLight up our app with capabilitiesTesting for capabilities and namespaceshttp://windows.Microsoft.comUsers love apps that work great on all their deviceshttp://windows.Microsoft.comTest capabilities at runtimeUse Adaptive Code to light-up your app on specific devicesvar api = "Windows.Phone.UI.Input.HardwareButtons";if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent(api)){Windows.Phone.UI.Input.HardwareButtons.CameraPressed += CameraButtonPressed;}http://windows.Microsoft.com32UAPWindows CoreWindows CoreWindows CoreWindows CoreUAPUAPUAPDesktopMobileXboxMorehttp://windows.Microsoft.comThe device families you choose determines which APIs you can call freelyhttp://windows.Microsoft.comOne simple, unified, integrated development environmenthttp://windows.Microsoft.comVisual Studio IDEEvery project typeDesktop, Windows, Phone, Service, Web, Game, MoreEvery developer taskCode edit, Architecture design, UX design, Debug, Profile, Review, Test, MoreEvery development languageC++/CX, C#, Visual Basic, JavaScript, XAML, HTML, MoreVisual Studio OnlineSource repository, project management, bug tracking, More http://windows.Microsoft.comIntroducing Roslyn, our new compiler for .Nethttp://windows.Microsoft.comBlend for Visual StudioThe XAML Developers IDEAlways part of Visual StudioUses the Visual Studio shellFull auto-complete & intellisenseValidationSnippetsPeekFile & solution managementResource managementData managementAnimationStates

http://windows.Microsoft.comVisual Studio 2015 EditionsEnterpriseArchitecture Modeling, Diagnostics, VSO/ALM & Release ManagementProfessionalArchitecture Validation, VSO/ALM & Feedback ManagementCommunity EditionsVisual Studio Professional Edition

http://windows.Microsoft.com39Microsoft Developer NetworkMicrosoft documentationhttp://msdn.Microsoft.comhttp://dev.Windows.comMicrosoft traininghttp://msevents.Microsoft.comhttp://MicrosoftVirtualAcademy.comMSDN SubscriptionOperating SystemsServer/Client ProductsDeveloper ToolsAzure/O365 Credits

http://windows.Microsoft.comDeveloper unlock

http://windows.Microsoft.com

Where can I develop?Windows 10Requires Visual Studio 2015 Windows 8.1 & Windows Server 2012 R2The Visual Studio designer does not functionDebugging requires a Windows 10 device or Remote Debugging Toolshttp://windows.Microsoft.comManaged languages are more efficient than everhttp://windows.Microsoft.com.NET NativeNext generation compiler in the cloud Every Windows apps, only Windows app (right now)Apps use the standard C++ optimizerAs optimizer performance improves, so does .Net nativeApps with .Net bootstrapperIncludes garbage collectionThere is no runtimeThis is machine code

http://windows.Microsoft.comBuild 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.5/18/2015 12:00 PM44Every Windows app will be compiled with .Net Nativehttp://windows.Microsoft.comBuild 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.5/18/2015 12:00 PM45Real benefits with .Net Native50% faster average startup time14% less average memory usagehttp://windows.Microsoft.comBuild 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.5/18/2015 12:00 PM46.Net Native enables the platform to update at a faster cadencehttp://windows.Microsoft.com47Introducing Template 10A new blank templateIncludes a few files & empty folders to guide conventionsSimilar to the MVC templateAdd-on components to solve common problemsSolving for the 90%The code will solve the 90% use caseDelivering with Windows 10The template is in GitHub and still under constructionhttp://windows.Microsoft.comContribute to Template10http://aka.ms/template10http://windows.Microsoft.comA single platformOne WindowsMany devicesDeveloper experienceWindows tooling.Net NativeTemplate 10http://aka.ms/template10

Reviewhttp://windows.Microsoft.com 2014 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.http://windows.Microsoft.com