Presentation is loading. Please wait.

Presentation is loading. Please wait.

Build Smart: Developing for Windows Phone and Windows 8 Vaughan Knight Nokia WPH323.

Similar presentations


Presentation on theme: "Build Smart: Developing for Windows Phone and Windows 8 Vaughan Knight Nokia WPH323."— Presentation transcript:

1 Build Smart: Developing for Windows Phone and Windows 8 Vaughan Knight Nokia WPH323

2 @vaughanknight #auteched #WPH323

3

4

5

6 A great place to start Setting Up The Projects

7

8 What? #if

9

10

11 SomeMethod() { DoThis(); DoSomethingElse(); } SomeMethod() { DoThis(); DoSomethingElse(); } The problem with block commenting

12 SomeMethod() { #if WINDOWS_PHONE NewXPlatformMethodWrappingDoSomething(); #else DoThis(); #endif } SomeMethod() { #if WINDOWS_PHONE NewXPlatformMethodWrappingDoSomething(); #else DoThis(); #endif } The problem with block commenting

13 Abstract Inheritance

14

15 SomeMethod() { AwesomeClassAbstract foo; #if WINDOWS_PHONE foo = new WindowsPhoneAwesomeClass(); #else foo = new WindowsAwesomeClass(); #endif } SomeMethod() { AwesomeClassAbstract foo; #if WINDOWS_PHONE foo = new WindowsPhoneAwesomeClass(); #else foo = new WindowsAwesomeClass(); #endif } Using factories

16 SomeMethod() { AwesomeClassAbstract foo = factory.CreateAwesome(); } AppInit() { #if WINDOWS_PHONE factory = new WindowsPhoneFactory(); #else factory = new WindowsFactory(); #endif } SomeMethod() { AwesomeClassAbstract foo = factory.CreateAwesome(); } AppInit() { #if WINDOWS_PHONE factory = new WindowsPhoneFactory(); #else factory = new WindowsFactory(); #endif } Using factories

17 Partial

18

19 Portable Libraries

20

21

22 WinRT Libraries

23

24

25 Demo With highest common returns Lowest Common Denominator

26

27

28

29 WPH333 - Hands-on Labs (session codes and titles) Product Demo Stations (demo station title and location) Related Certification Exam DEV334 - Windows 8 Games and High Performance Development Nokia Stand

30


Download ppt "Build Smart: Developing for Windows Phone and Windows 8 Vaughan Knight Nokia WPH323."

Similar presentations


Ads by Google