Developing for Windows Phone 7

47
WINDOWS PHONE 7 GERGELY OROSZ @GergelyOrosz GregDoesIT.com

description

 

Transcript of Developing for Windows Phone 7

Page 1: Developing for Windows Phone 7

WINDOWS PHONE 7GERGELY OROSZ

@GergelyOrosz

GregDoesIT.com

Page 2: Developing for Windows Phone 7

WP7OVERVIEW

Page 3: Developing for Windows Phone 7

WHAT IS WINDOWS PHONE 7

• Released• 21 Oct (EU)• 8 Nov (US)

• UI: Metro

• XBOX integration

Page 4: Developing for Windows Phone 7

MINIMUM HARDWARE REQUIREMENTS

• Screen: 480x800

• CPU: 1GHz, RAM: 256MB

• Buttons• Back, Windows, Search

• Screen: OLED

Page 5: Developing for Windows Phone 7

MINIMUM HARDWARE REQUIREMENTS

• Camera: 5 Mpx

• Accelerometer

• Compass

• Proximity sensor

• A-GPS

Page 6: Developing for Windows Phone 7

MARKETPLACE

• $99/yr

• Application types• Free• Try before buy – trial API• Paid

Page 7: Developing for Windows Phone 7

SUMBITTING & UPDATES

• Submitting• Approval process

• Updates• Auto install

• Opens early Oct

Page 8: Developing for Windows Phone 7

PUSH NOTIFICATIONS

Page 9: Developing for Windows Phone 7

DEVELOPING FOR WP7

Page 10: Developing for Windows Phone 7

DEVELOPMENT ENVIRONMENT

• VS 2010 Express

• Blend for WP7

• C#

• Silverlight or XNA

Page 11: Developing for Windows Phone 7

CREATING A SIMPLE APPLICATION

Page 12: Developing for Windows Phone 7

CREATING A SIMPLE APPLICATION

• Create a new project

• Add pages

• Navigate between pages

Page 13: Developing for Windows Phone 7

CREATING A SIMPLE APPLICATION

• Create / import model

• Implement list view• Databinding, ListBox

• Application lifecyclye• Saving to IsolatedStorage

Page 14: Developing for Windows Phone 7

CREATING A SIMPLE APPLICATION

• Use of ApplicationBar

• Use of user’s theme

• Theming• Expression Blend helps

Page 15: Developing for Windows Phone 7

ADVANCED APPLICATION DEVELOPMENT

• Use of other controls• E.g. pivot, panorama

• WebClient

• Location API

• Accelerometer API

Page 16: Developing for Windows Phone 7

ADVANCED APPLICATION DEVELOPMENT

• Transitions

• Trial API

• MVVM• MVVM Light framework

• Unit testing

Page 17: Developing for Windows Phone 7

GREAT WP7 APPLICATIONS

Page 18: Developing for Windows Phone 7

METRO

Page 19: Developing for Windows Phone 7

METRO

Page 20: Developing for Windows Phone 7

NAVIGATION METRO STYLE

• Get there, intiutuvely

• Panorama control

• Pivot control

Page 21: Developing for Windows Phone 7

PANORAMA CONTROL

Page 22: Developing for Windows Phone 7

PANORAMA CONTROL

Page 23: Developing for Windows Phone 7

PANORAMA CONTROL

Demo

Page 24: Developing for Windows Phone 7

PANORAMA CONTROL

• Needs• Good background image• Enough menu items

• Good for mixing media types• Not neccesary to do so!

• Title takes up lots of space

Page 25: Developing for Windows Phone 7

PIVOT CONTROL

Page 26: Developing for Windows Phone 7

PIVOT CONTROL

Demo

Page 27: Developing for Windows Phone 7

PIVOT CONTROL

• Similar to Panorama• No shared background• Title smaller• Pane’s structure the same

• Not enforced

• Text content• Not enforced

Page 28: Developing for Windows Phone 7

PIVOT

Page 29: Developing for Windows Phone 7

ORIENTATION

• Horizontal, vertical or both

• Implement for usability, not orientation

Page 30: Developing for Windows Phone 7

APPLICATION BAR

Page 31: Developing for Windows Phone 7

APPLICATION BAR

• Context menu, not a menu

• Max 4 icons

• Menu items can be added

• Not a FrameworkElement• No binding, no MVVM

Page 32: Developing for Windows Phone 7

WP7 LAYOUT TEMPLATES

• Download as solution

• Demo

Page 33: Developing for Windows Phone 7

WP7 VS DESKTOP/WEB

• Different size

• Different navigation

• Possibly different needs

Page 34: Developing for Windows Phone 7

WP7 VS DESKTOP/WEB: TWITTER

Page 35: Developing for Windows Phone 7

WP7 VS IPHONE

• Navigation is different• WP7 has a back button• WP7 has pivot, panorama

• Application bar usage is different• iPhone: global menu

WP7: context menu

Page 36: Developing for Windows Phone 7

WP7 VS IPHONE

• Similarities• Listviews• Master / detail pages

• WP7 doesn’t need back button

Page 37: Developing for Windows Phone 7

WP7 VS IPHONE: TWITTER

Page 38: Developing for Windows Phone 7

VISUAL DESIGN

• No design resources• Use built-in

controls & colors• WP7 has great

typography

Page 39: Developing for Windows Phone 7

VISUAL DESIGN

• Some design resources• Panorama: 1

picture• Icons, small

images, grids

Page 40: Developing for Windows Phone 7

VISUAL DESIGN

• Plenty of design resources• Create your own

theme• Use WP7

resources where it’s reasonable

Page 41: Developing for Windows Phone 7

FINAL THOUGHTS

Page 42: Developing for Windows Phone 7

MY EXPERIENCE

• Easy• Tools, .Net

• Interesting• Different from desktop / web

• Fun & cool• Creating professional looking

applications

Page 43: Developing for Windows Phone 7

WHY DEVELOP?

• Easy to get started

• Tools are great

• Not (that) hard to master

• (Surprisingly) fun

Page 44: Developing for Windows Phone 7

WHY DEVELOP?

• Easy to create beautiful apps• Thank you, Metro• “Cooler” apps then iPhone or

Android

Page 45: Developing for Windows Phone 7

WHY DEVELOP… NOW?

• Easy to get started

• Easy to create nice apps

• Marketplace not yet open• It’s easy for others to start as

well!

Page 46: Developing for Windows Phone 7

WHY DEVELOP?

• Ideal for prototyping• Rapid development

• Make something you’re proud of

• Make something you can sell

Page 47: Developing for Windows Phone 7

THANK YOU

Gergely Orosz

@gergelyorosz

GregDoesIT.com

ScotAlt.Net