17
Introducing Windows Phone 7 Development with Silverlight John Garland Senior Consultant http://blog.dotnetgator.com

VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

Embed Size (px)

DESCRIPTION

Slide deck presented at the 2010 Vermont Code Camp. Sample code and notes are available at http://cid-511766c2b5c5bdd3.office.live.com/browse.aspx/DotNet%20Presentations/Vermont%20Code%20Camp%2020100912/Windows%20Phone%207%20via%20Silverlight

Citation preview

Page 1: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

Introducing Windows Phone 7 Development with Silverlight

John GarlandSenior Consultanthttp://blog.dotnetgator.com

Page 2: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

What we doConsulting | Debugging | Training

Who we areFounded by top experts on Microsoft– Jeffrey Richter, Jeff Prosise and John Robbins – we pull out all the stops to help our customers achieve their goals through advanced software-based consulting and training solutions.

How we do itConsulting & Debugging• Architecture, analysis, and design

services• Full Lifecycle custom software

development• Content creation• Project management• Debugging & performance tuning

Training• On-site instructor-led

training• Virtual instructor-led

training• Devscovery conferences

www.wintellect.com

Page 3: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

Agenda

• Phone Basics• Demo – Application Basics• Demo – Navigation• Demo – Application Lifetime• Demo – Launchers & Choosers• Demo – Notification Services• Wrap up

Page 4: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

Basics – Overview

• Due out for “Holiday 2010”– Hardware RTM’ed on 9/1/2010– Tools are currently in Beta, with final

release scheduled for 9/16– Marketplace opens in “early October”

• Key Concepts– End-User Experience First– Marketplace– Hardware Specification– Development Platform

• Simpler than previous experiences• Silverlight 3+, XNA• Emulator or direct phone connection via

USB

Page 5: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

Basics – Design

• Glance & Go• “METRO” Design

– Inspired by transportation systems, Xbox, Zune, Media Center

– Clean, light, full-bleed, low-chrome

• Experience– Home (Tiles)– Hubs

Page 6: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

Basics – Hardware

Capacitive touch - 4 or more contact points

Sensors - A-GPS, Accelerometer, Compass, Light, Proximity

Camera - 5 mega pixels or more, flash required, camera button required

Multimedia - Common detailed specs, Codec acceleration

Memory - 256MB RAM or more, 8GB Flash or more

GPU - DirectX 9 acceleration

CPU - ARMv7 Cortex/Scorpion or better

Display - 800 WVGA / 480 HVGA

Hardware Buttons – Start, Search, Back

Page 7: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

Basics – Silverlight Development• Windows 7 / Vista required

– No XP, no Server OS– No VB support (yet) – C# only

• Silverlight 3+ phone-specific APIs– HW Integration

(Accelerometer, GPS, Camera, Microphone)– Hub Integration– Service Integration– Phone-specific navigation model– Not hosted in a browser window (no HTML Bridge)– Isolated storage – no quotas, no “Site”– Controls enhanced to support touch– Limited access to XNA assemblies from Silverlight

applications– MSDN - Differences between SL for WP7 & Windows

Page 9: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

DEMO – Application Basics

Page 10: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

DEMO - Navigation

App

Frame

Page Page Page

MSDN Section here

Page 11: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

DEMO – Application Lifetime

• 4 Application Events– Launching, Closed– Deactivated, Activated

• “Tombstoning”• MSDN – here• Yochay Kiriaty series @

Phone Dev Blog

Page 12: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

DEMO – Launchers & Choosers

Launchers Choosers

EmailComposeTaskMarketplaceDetailTaskMarketplaceHubTaskMarketplaceSearchTaskMediaPlayerLauncherPhoneCallTaskSmsComposeTaskWebBrowserTask

CameraCaptureTaskEmailAddressChooseTaskPhoneNumberChooseTaskPhotoChooserTaskSaveEmailAddressTaskSavePhoneNumberTask

• Ricky Tan Article

Page 13: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

Demo – Sensors

• Assisted-GPS• Accelerometer

– Accelerometer Helper Article• Vibration

Page 14: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

DEMO - Notification Services

Registration

Something Happens

URL

Application Notification Service

(App Developer)

Notification

MSFT Push

NotificationService

MSFT Push

NotificationService

Notify Phone

URL

Show Notification

Notification Service

(Phone OS)

Get U

RL

Page 16: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs

Final Thought

Page 17: VT Code Camp 2010 - Introduction to windows phone 7 development with silverlight

http://blog.dotnetgator.com http://www.wintellect.com/cs/blogs