Presentation is loading. Please wait.

Presentation is loading. Please wait.

Universal Apps 101 Goran Karačić. Agenda Who am I? Introduction to Universal Apps Universal Apps Demo Questions.

Similar presentations


Presentation on theme: "Universal Apps 101 Goran Karačić. Agenda Who am I? Introduction to Universal Apps Universal Apps Demo Questions."— Presentation transcript:

1 Universal Apps 101 Goran Karačić

2 Agenda Who am I? Introduction to Universal Apps Universal Apps Demo Questions

3 Who am I? Goran Karacic Polytechnic Zagreb Windows Phone developer Ice cream addict Lady Gaga > Ke$a Berries Ice Cream Purple Food Wallpaper HD Skilal # HD Backgrou nd

4 Universal Apps Overview

5 Universal apps Applications that use the overlapping code of the Windows 8.1 and the Windows Phone 8.1 platform Create new apps or add a WP8.1 app to your existing Windows 8.1 project Supported for C#, C++ and HTML5/CSS/JS

6 How much code is shared? ClassesStructsInterfaces Windows 8.1 SDK Windows Phone 8.1 SDK

7 Converting a Windows 8.1 project As simple as adding a new project to the solution

8 Shared Project Allows sharing items between application projects No binary output Supports all items: XAML Code files Images XML/JSON

9 Code Sharing Architecture Separation of Concerns Decouple UI from App Logic Logic in Shared Project +some XAML that makes sense UI goes into the Windows/WP project +some platform specific logic (geolocation, sensors…)

10 #if Compiler Conditionals Windows = WINDOWS_APP Example: hardware back button (WP only) Windows Phone = WINDOWS_PHONE_APP #if WINDOWS_PHONE_APP Windows.Phone.UI.Input.HardwareButtons.BackPressed += this.HardwareButtons_BackPressed; #endif

11 Demo

12 Questions?

13 Thank you, come again! :D


Download ppt "Universal Apps 101 Goran Karačić. Agenda Who am I? Introduction to Universal Apps Universal Apps Demo Questions."

Similar presentations


Ads by Google