Using Visual Studio to build XAML universal apps

Download Report

Transcript Using Visual Studio to build XAML universal apps

Ahmed Sengab
Microsoft Elite





























Buy a universal app on Windows and it’s
available on Phone without additional purchase
Buy an in-app entitlement on Windows and it’s
available on Phone without additional purchase
Register the same Push Notification channel against
both the Windows and Phone app
Save roaming data in Windows and that same
Data is available in the Phone version




The Windows Runtime API & Microsoft SDKs are
around 90% converged, and closing
Universal Apps supports
C#, C++, and JavaScript
Windows Phone Silverlight and Windows apps
can share a Package Family Name
Existing Windows 8 apps can be
migrated to shared projects
C#
#if WINDOWS_PHONE_APP
Windows.Phone.UI.Input.HardwareButtons.BackPressed +=
this.HardwareButtons_BackPressed;
#endif
C++
#if WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP
_backPressedEventToken = HardwareButtons::BackPressed +=
ref new EventHandler<BackPressedEventArgs^>(this,
&NavigationHelper::HardwareButton_BackPressed);
#endif





Shared
Projects
Portable
Class Libraries
New!
Improved!
I can easily include
platform-specific code
under #if or partial
classes
I compile just once
and know it works
on all platforms
Facebook/ahmedsengab9
©2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics 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.