Presentation is loading. Please wait.

Presentation is loading. Please wait.

Extend your app to multiple device families and use new capabilities by targeting the UWP.

Similar presentations


Presentation on theme: "Extend your app to multiple device families and use new capabilities by targeting the UWP."— Presentation transcript:

1

2

3 Extend your app to multiple device families and use new capabilities by targeting the UWP

4

5 Windows 8.0 Minimal code update required Responsive UX Design/Implementation Windows 10

6 Windows Phone 8.1 Minor code updates for UWP APIs Design UX for multiple form factors Windows 10

7 Windows 8.1 Merge UX Refactor to single code-base & to target UAP APIs Windows 10 Windows Phone 8.1

8 *Silverlight on Windows Phone 8.1 can be a mix of Silverlight and WinRT APIs Windows Phone 7.5/7.8 Windows Phone 8.0 Windows Phone 8.1* Port the UI Silverlight -> Windows XAML Rewrite code to target UWP APIs* Design UX for multiple form factors Windows 10

9

10

11

12 Automates most of the upgrade steps – doesn’t do everything! Converts.csproj to UWP, updates package.appxmanifest Run directly in Powershell (needs script execute allowed), or execute Run_Upgrade_to_UWP.bat at cmd prompt

13

14

15

16 Scale Factors 100125150200250300400

17

18 See MSDN documentation for guidance on how to Move from Windows Runtime 8 to UWP: http://aka.ms/movefrom8touwp

19

20

21 this.Page.Loaded += (sender, e) => { #if WINDOWS_PHONE_APP Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed; #else // Keyboard and mouse navigation only apply when occupying the entire window if (this.Page.ActualHeight == Window.Current.Bounds.Height && this.Page.ActualWidth == Window.Current.Bounds.Width) { // Listen to the window directly so focus isn't required Window.Current.CoreWindow.Dispatcher.AcceleratorKeyActivated += CoreDispatcher_AcceleratorKeyActivated; Window.Current.CoreWindow.PointerPressed += this.CoreWindow_PointerPressed; } #endif };

22

23

24 var api = "Windows.Phone.UI.Input.HardwareButtons"; if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent(api)) { Windows.Phone.UI.Input.HardwareButtons.CameraPressed += CameraButtonPressed; }

25

26

27

28

29 Phone/narrow view small landscape view large landscape view

30

31

32

33

34


Download ppt "Extend your app to multiple device families and use new capabilities by targeting the UWP."

Similar presentations


Ads by Google