universal apps 101 goran karačić. agenda who am i? introduction to universal apps universal apps...

13
Universal Apps 101 Twitter : Web: Mail: @gogzs gorankaracic.co m goran.karacic@studentpar tner.com Goran Karačić

Upload: emmalee-bedwell

Post on 01-Apr-2015

219 views

Category:

Documents


1 download

TRANSCRIPT

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

Universal Apps 101

Twitter:Web:Mail:

@gogzsgorankaracic.com

[email protected]

Goran Karačić

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

AgendaWho am I?

Introduction to Universal AppsUniversal Apps DemoQuestions

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

Who am I?Goran KaracicPolytechnic ZagrebWindows Phone developerIce cream addictLady Gaga > Ke$a

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

Universal Apps Overview

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

Universal appsApplications that use the overlapping code of theWindows 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

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

How much code is shared?

Classes Structs Interfaces

Windows 8.1 SDK 566 119 59

Windows Phone 8.1 SDK

624 131 57

+58 +12 -2

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

Converting a Windows 8.1 projectAs simple as addinga new project to thesolution

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

Shared ProjectAllows sharing items between application projects

No binary output

Supports all items:XAMLCode filesImagesXML/JSON

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

Code Sharing Architecture

Separation of ConcernsDecouple 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…)

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

#if Compiler ConditionalsWindows = 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

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

Demo

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

Questions?

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

Thank you, come again! :D