Building Windows Phone Applications with Silverlight
Nguyen Thanh TungProject Manager - MISA JSC
Agenda
1. Introduction to Windows Phone 7
2. Silverlight and XNA framework
3. Developing Windows Phone 7 Application with Silverlight
Different, For Good Reasons
Smart Design
Integrated Experiences
Photo by: Andrew Butitta, Founder, Talisman Digital Photography
Integrated Experiences
PEOPLE OFFICE
MARKETPLACE
PICTURES MUSIC+VIDEO
GAMES
Platform Goals
Help end users personalize their phones
Help developers be profitable
Enable cloud powered experiences
Agenda
1. Introduction to Windows Phone 7
2. Silverlight and XNA framework
3. Developing Windows Phone 7 Application with Silverlight
CLOUD
SCREEN
Elements of the Application Platform
Cloud Services
Runtime – On “Screen”
Code you write on the
client
Code you write on the
server
Tools & Support
Developer Portal Services
Tools you use to design &
develop
Tools you use to ship & sell
CLOUD
SCREEN
Phone Emulator
Samples Documentation
Guides Community
Packaging and Verification Tools
Notifications
Location Identity Feeds
MapsSocial
App Deployment Registration
Validation
Certification
Publishing
Marketplace
MO and CC Billing
Business Intelligence
Update Management
Elements of the Application Platform
Tools
Portal ServicesCloud Services
Sensors Media Data
Xbox LIVE Notifications
.NET Framework managed code sandbox
Location
Phone
Runtime – On “Screen”
Two Flavors of Applications
High performance game framework
Rapid creation of multi-screen
2D and 3D games Rich content pipeline Mature, robust, widely
adopted technology spanning Xbox 360, Windows, and Zune
Modern XAML/event-driven application UI framework
Rapid creation of visually stunning apps
Metro-themed UI controls
HTML/JavaScript 500,000 developers
spanning Windows and web
Common Capabilities
Input• Touch• Hardware buttons
Media• Digital media capture & playback• Media library access
Data• Isolated Storage• LINQ (Objects and XML)
.NET
• Superset of Silverlight 3.0• Windows Communication Foundation
• SOAP and REST services
Phone Access• Integrated access to phone UI• Sensors• Picker for contacts and photos
Integrated With Cloud Services• App Deployment & Updates• Notifications• Location• Xbox LIVE
Agenda
1. Introduction to Windows Phone 7
2. Silverlight and XNA framework
3. Developing Windows Phone 7 Application with Silverlight
HelloWorld Application Navigation and Controls Push notifications Launchers and Choosers Application Lifecycle Bing Maps Pivot and Panorama Controls Windows Phone 7 Devices
Demo develop WP7 app in simulator
Demo
HelloWorld Application
Navigation and Controls
PhoneApplicationFrame PhoneApplicationPage Using navigation services Handling the back button Control phone orientation Application bar – System tray ListBox WebBrowser Hyperlink buttons Media
Push notifications
- RawNotificationMessage- TileNotificationMessage- ToastNotificationMessage
Launchers and choosers
Launchers Choosers- A “fire and forget” action,
where a specific Windows Phone functionality is launched
- No data is returned to the calling application
- An “open file dialog” action, where information is selected from a specific phone application’s storage area
- Returns some kind of data to the calling application
• EmailComposeTask • MediaPlayerLauncher • PhoneCallTask• SaveEmailAddressTask• SavePhoneNumberTask• SearchTask• SmsComposeTask • WebBrowserTask• MarketplaceDetailTask • …
• EmailAddressChooserTask • CameraCaptureTask• PhoneNumberChooserTask• PhotoChooserTask
Application lifecycle
Only a single application can run in the foreground
No 3rd party applications are allowed to run in the background
The procedure in which the operating system terminates an application’s process when the user navigates away from the application is called tombstoning
Application state information is maintained for next launching
Pivot and panorama control
Pivot Panorama- Shows multiple different
pages- Presents a single page
divided to sub-pages that we can scroll
- Has a background image that stretches across all the sub-pages giving the feel of a wide screen
More services: Bing map Location service …
Further Information
http://tungnt185.wordpress.com http://blogs.msdn.com/mharsh http://www.globalnerdy.com/2010/03/21/windo
ws-phone-7-session-videos-and-slides-organized-and-explained/
Q & A
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.