12
Sharing Code Between Windows Phone & Windows Store Apps Adil Ahmed Mughal

Code Sharing Between Windows Phone/Store Apps

Embed Size (px)

DESCRIPTION

This is slide deck from session on Code Sharing between Windows Phone and Windows Store apps. Complete code has been published at https://github.com/adilmughal/DemoMvvm-Sharing-WP-WS

Citation preview

Page 1: Code Sharing Between Windows Phone/Store Apps

Sharing Code Between Windows Phone & Windows Store Apps

Adil Ahmed Mughal

Page 2: Code Sharing Between Windows Phone/Store Apps

Speaker => Adil Ahmed Mughal

Affiliations:

Contact Information:

@adilamughal

http://www.adilmughal.com

[email protected]

Page 3: Code Sharing Between Windows Phone/Store Apps

What to Expect Today?

• What you must already know?– Basic hands on XAML development

– Knowledge of binding or MVVM

• What you will learn?– Leverage Model-View-ViewModel (MVVM) pattern to share

non-UI code across Windows Phone and Store apps

– Universal apps project template to share UI stuff across both platforms

Page 4: Code Sharing Between Windows Phone/Store Apps

Agenda

Implement a simple contact form app on WP/WT:

1. Traditional way

2. MVVM way

3. Universal app template

Page 5: Code Sharing Between Windows Phone/Store Apps

The App

Page 6: Code Sharing Between Windows Phone/Store Apps

Traditional Way

Let’s write code…

Page 7: Code Sharing Between Windows Phone/Store Apps

The MVVM Way

Page 8: Code Sharing Between Windows Phone/Store Apps

MVVM Recap

Page 9: Code Sharing Between Windows Phone/Store Apps
Page 10: Code Sharing Between Windows Phone/Store Apps

The MVVM Way

Time to code…

Page 11: Code Sharing Between Windows Phone/Store Apps

Universal Apps

New project template in

Visual Studio 2013 (Update 2)

Page 12: Code Sharing Between Windows Phone/Store Apps

Sharing Code Between Windows Phone/Store Apps

Thank YOU for your time and attention!

Adil Ahmed Mughal

@adilamughal

http://www.adilmughal.com

[email protected]