Download presentation
Presentation is loading. Please wait.
Published byJessica Cain Modified over 9 years ago
1
Build Smart: Developing for Windows Phone and Windows 8 Vaughan Knight Nokia WPH323
2
@vaughanknight #auteched #WPH323
6
A great place to start Setting Up The Projects
8
What? #if
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
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
19
Portable Libraries
22
WinRT Libraries
25
Demo With highest common returns Lowest Common Denominator
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.