18
7 Glen Gordon Developer Evangelist http://glengordon.name @glengordon [email protected] Windows Phone Jumpstart

Windows Phone Garage - Application Jumpstart

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Windows Phone Garage - Application Jumpstart

7

Glen GordonDeveloper Evangelisthttp://[email protected]@microsoft.com

Windows Phone Jumpstart

Page 2: Windows Phone Garage - Application Jumpstart

Agenda

Services

Design Considerations

Templates

Page 3: Windows Phone Garage - Application Jumpstart

Design considerations

Page 4: Windows Phone Garage - Application Jumpstart

4

Theming Enables user to personalize their phone Dark and light themes, each with several

accent colors Built-in controls are automatically themed Applications can take advantage of theme

values

Page 5: Windows Phone Garage - Application Jumpstart

Tasks - Launchers and Choosers Launcher

Launches one of the built-in applications through which a user completes a task

No data is returned to calling application Example: PhoneCallTask

Chooser Launches one of the built-in applications through which

a user completes a task, and which returns some data to calling application

When caller completes, calling application is activated and supplied with the Chooser result

Example: PhotoChooserTask

5

Page 6: Windows Phone Garage - Application Jumpstart

Launchers & ChoosersLaunchers EmailComposeTask MarketplaceDetailTask MarketplaceHubTask MarketplaceReviewTas

k MarketplaceSearchTas

k MediaPlayerLauncher PhoneCallTask SearchTask SMSComposeTask WebBrowserTask

Choosers CameraCaptureTask EmailAddressChooserT

ask PhoneNumberChooser

Task PhotoChooserTask SaveEmailAddressTask SavePhoneNumberTas

k

Page 7: Windows Phone Garage - Application Jumpstart

Retained in shell frame to support resuming paused

sessions

Discarded while the session is paused

UI and State Management: Concepts

Page UIDescribes the visual

appearance of a page

Page StateContains data that

describes an instance of a page,

analogous to browser cookie

Page 8: Windows Phone Garage - Application Jumpstart

8

App Lifecycle - Tombstoning Happens when your application loses focus

Start Button Task started Incoming phone call

Application can be resumed User will be returned to most recent page

Page 9: Windows Phone Garage - Application Jumpstart

9

App Lifecycle - Coding Save & restore page state

OnNavigatedTo and OnNavigatedFrom event

Save & restore application state Application_Launching,

Application_Activated, Application_Deactivated, Application_Closing

Found in app.xaml.cs

Page 10: Windows Phone Garage - Application Jumpstart

10

Storage Isolated Storage

Settings and custom data Secure and sandboxed Logical folder structure via APIs No quota currently

Be responsible and inform/empower user Session State

PhoneApplicationService.Current.State Goes away on app closing

Page 11: Windows Phone Garage - Application Jumpstart

AppBar Up to 4 icons

48 x 48 pixels Black/white versions

Can set transparency level Slide up Menu can display more items Can declare in code or XAML Found under Program Files\Microsoft SDKs\

Windows Phone\v7.0\Icons

Page 12: Windows Phone Garage - Application Jumpstart

Hub Integration Music Photos Configured via XML in app manifest

Page 13: Windows Phone Garage - Application Jumpstart

Templates

Page 14: Windows Phone Garage - Application Jumpstart

Templates Built in

Databound, Panorama and Pivot Social viewer Windows Azure Toolkit

Page 15: Windows Phone Garage - Application Jumpstart

Services

Page 16: Windows Phone Garage - Application Jumpstart

Services RSS feeds (blogs, news, photos, video…) Popular APIs (Facebook, Twitter, Flickr,

Foursquare…) Bing

http://bing.com/developers Programmable Web

http://www.programmableweb.com/apis/directory

Windows Azure Marketplace https://datamarket.azure.com/

Page 17: Windows Phone Garage - Application Jumpstart

7

Glen GordonDeveloper Evangelisthttp://[email protected]@microsoft.com

Windows Phone Jumpstart

Page 18: Windows Phone Garage - Application Jumpstart

© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.

MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.