Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ......

32
Any questions please contact [email protected]

Transcript of Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ......

Page 1: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

Any questions please contact [email protected]

Page 2: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 3: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 4: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

Goal: One Billion Devices.Now Over 200 Million Devices!The Number Is Still Growing!

Page 5: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

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

Page 6: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 7: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

Windows 8.0

Minimal code update required

Responsive UX

Design/Implementation

Windows 10

Page 8: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

Windows Phone 8.1

Minor code updates for UWP APIs

Design UX for multiple form

factors

Windows 10

Page 9: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

Windows 8.1

Merge UX

Refactor to single code-base & to

target UWP APIs

Windows 10

Windows Phone 8.1

Page 10: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

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

Page 11: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 12: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 13: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 14: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 15: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 16: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 17: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 18: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 19: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 20: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

this.Page.Loaded += (sender, e) =>{

#if WINDOWS_PHONE_APPWindows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed;

#else// Keyboard and mouse navigation only apply when occupying the entire windowif (this.Page.ActualHeight == Window.Current.Bounds.Height &&

this.Page.ActualWidth == Window.Current.Bounds.Width){

// Listen to the window directly so focus isn't requiredWindow.Current.CoreWindow.Dispatcher.AcceleratorKeyActivated +=

CoreDispatcher_AcceleratorKeyActivated;Window.Current.CoreWindow.PointerPressed +=

this.CoreWindow_PointerPressed;}

#endif};

Page 21: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

Example:protected override void OnNavigatedTo(NavigationEventArgs e){

var frame = Window.Current.Content as Frame;if (frame.CanGoBack){

SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =AppViewBackButtonVisibility.Visible;

}else{

SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =AppViewBackButtonVisibility.Collapsed;

}

SystemNavigationManager.GetForCurrentView().BackRequested += Page_BackRequested;}

Page 22: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 23: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

var api = "Windows.Phone.UI.Input.HardwareButtons";

if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent(api))

{

Windows.Phone.UI.Input.HardwareButtons.CameraPressed

+= CameraButtonPressed;

}

Page 24: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 25: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 26: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 27: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 28: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

Phone/Narrow view

Small landscape

view

Large landscape view

Page 29: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML
Page 30: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

https://msdn.microsoft.com/en-us/library/windows/apps/mt238322.aspx

https://msdn.microsoft.com/en-us/library/windows/apps/mt238323.aspx

https://channel9.msdn.com/Events/Windows/Developers-Guide-to-Windows-10-RTM/Porting-81-apps

https://channel9.msdn.com/events/Build/2015/3-741

https://msdn.microsoft.com/en-us/library/windows/apps/bg124285.aspx

https://msdn.microsoft.com/en-us/library/windows/apps/dn706137.aspx

https://blogs.windows.com/buildingapps/2015/08/20/net-native-what-it-means-for-universal-windows-platform-uwp-developers/

https://msdn.microsoft.com/en-us/library/windows/apps/mt188207.aspx

https://msdn.microsoft.com/en-us/library/windows/apps/mt188200.aspx

Page 31: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML

Calls to ActionJoin WinHEC LINE Community @winhec

We want to hear from you!

Please Complete the Evaluation Form and return it to our reception.

Your input is highly important to us! Thank you!!

Page 32: Any questions please contact winhectpe@microsoft · Any questions please contact winhectpe@ ... //msdn.microsoft.com/en-us/library/windows ... Porting an App from Windows 8.1 XAML