32
Windows 8 and Phone App Development Paul Gower [email protected] @paulmgower http://blog.paulgower.me http://lunamark.com

Windows 8 and Phone App Development

Embed Size (px)

DESCRIPTION

This will be a hands-on lab to show you how to create a multi-platform app using the XPlatformCloudKit framework (https://github.com/winappkits/XPlatformCloudKit). The XPlatformCloudKit was built by Paul DeCarlo (http://pjdecarlo.com/) and the team behind webappkits (https://github.com/winappkits). In this presentation, you will be shown how to build a Windows 8 and Windows 8 Phone app which can retrieve data from any combination of RSS feeds, local XML files, or Azure mobile Services. This will be an interactive presentation demonstrating the power of the XPlatformCloudKit and how you might use a portable class library to build both a Windows 8 and Windows 8 Phone app.

Citation preview

Page 1: Windows 8 and Phone App Development

Windows 8 and Phone App Development

Paul Gower

[email protected]

@paulmgower

http://blog.paulgower.me

http://lunamark.com

Page 3: Windows 8 and Phone App Development

Real-world stocks - example

Page 4: Windows 8 and Phone App Development

Design

Page 5: Windows 8 and Phone App Development

What is common?

Windows Phone

Windows

Page 6: Windows 8 and Phone App Development

Windows

What is different?

Windows Phone

Page 7: Windows 8 and Phone App Development

GridView Panorama

Page 8: Windows 8 and Phone App Development

GridView

Page 9: Windows 8 and Phone App Development

Demo

Page 10: Windows 8 and Phone App Development

AppBar

Page 11: Windows 8 and Phone App Development

On screen

Page 12: Windows 8 and Phone App Development
Page 13: Windows 8 and Phone App Development

Develop

Page 14: Windows 8 and Phone App Development
Page 15: Windows 8 and Phone App Development

PCL –Visual Studio Support

Cross-Platform Development with the Portable Class Library on MSDN - http://msdn.microsoft.com/en-us/library/gg597391(v=vs.110).aspx

Page 16: Windows 8 and Phone App Development

Portable Class Library

Demo

Page 17: Windows 8 and Phone App Development

What is Windows Azure Mobile Services?

Page 18: Windows 8 and Phone App Development

Key ScenariosWindows Azure Mobile Services are ideal for:

Page 19: Windows 8 and Phone App Development

Image credit: http://quickmeme.com

Page 20: Windows 8 and Phone App Development

Linked files

Page 21: Windows 8 and Phone App Development

Linked files

Hold Alt and drag a folder to link multiple files at once!

Windows Phone Windows

Page 22: Windows 8 and Phone App Development

Linked Files

Demo

Page 23: Windows 8 and Phone App Development

#if NETFX_CORE

Dispatcher.RunAsync(CoreDispatcherPriority.Normal, myAction);

#endif

#if WINDOWS_PHONE

Deployment.Current.Dispatcher.BeginInvoke(myAction);

#endif

Windows

Windows phone

Page 24: Windows 8 and Phone App Development

Compiler Directives

Demo

Page 25: Windows 8 and Phone App Development

Comparison

Sharing an assembly (PCL)

+

Code remains clean and single purpose

Build, test, compile once

-

Limited API access

Can’t reference non-PCL assemblies

Won’t work with Express SKUs (until VS2013)

+

-

Page 26: Windows 8 and Phone App Development

Architecture

Page 27: Windows 8 and Phone App Development

Portable Class Library

CoreViewModels

Services

Models

Windows

App Startup / Lifecycle

Views

Controls

Converters

ViewModels

Windows Phone

App Startup / Lifecycle

Views

Controls

Converters

ViewModels

Page 28: Windows 8 and Phone App Development

Demo

Page 29: Windows 8 and Phone App Development

Summary –What to share?

Page 30: Windows 8 and Phone App Development

QUESTIONS?

Paul Gower

[email protected]

@paulmgower

http://blog.paulgower.me

http://lunamark.com

Page 31: Windows 8 and Phone App Development

XPlatformCloudKit

Demo

Page 32: Windows 8 and Phone App Development

• Stuart Lodge (creator of MvvmCross) – http://slodge.blogspot.com

• MvvmCross GitHub - http://github.com/MvvmCross/MvvmCross

• Paul DeCarlo (creator of XPlatformCloudKit) – http://pjdecarlo.com

• XPlatformCloudKit GitHub – http://github.com/winappkits/XPlatformCloudKit

• Azure Mobile Services – http://azure.microsoft.com/en-us/develop/mobile

• Portable Class Library – http://msdn.microsoft.com/en-us/library/gg597391(v=vs.110).aspx

• Xamarin Studio – http://www.xamarin.com

Resources