CL16: Building Windows Phone Applications with

advertisement
Building Windows Phone Applications
with Silverlight
Nguyen Thanh Tung
Project 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
Integrated Experiences
PEOPLE
OFFICE
PICTURES
MUSIC+VIDEO
MARKETPLACE
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
Elements of the Application Platform
Runtime – On “Screen”
Code you write
on the client
SCREEN
CLOUD
Cloud Services
Code you write
on the server
Tools & Support
Tools you use to
design &
develop
Developer Portal Services
Tools you use to
ship & sell
Elements of the Application Platform
Runtime – On “Screen”
Sensors
Media
Phone
Data
Xbox LIVE
Location
Notifications
.NET Framework managed code sandbox
Phone Emulator
Samples
Documentation
Guides
Community
Packaging and Verification Tools
SCREEN
CLOUD
Tools
Cloud Services
Notifications
Location
Portal Services
App Deployment
Registration
Marketplace
Identity
Feeds
Validation
MO and CC Billing
Social
Maps
Certification
Business Intelligence
Publishing
Update Management
Two Flavors of Applications
Common Capabilities
Input
•
•
Touch
Hardware buttons
.NET
•
•
Superset of Silverlight 3.0
Windows Communication Foundation
•
Media
•
•
Digital media capture & playback
Media library access
SOAP and REST services
Phone Access
•
•
•
Integrated access to phone UI
Sensors
Picker for contacts and photos
Data
•
•
Isolated Storage
LINQ (Objects and XML)
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
Demo develop WP7 app in simulator








HelloWorld Application
Navigation and Controls
Push notifications
Launchers and Choosers
Application Lifecycle
Bing Maps
Pivot and Panorama Controls
Windows Phone 7 Devices
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
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 subpages 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/windowsphone-7-session-videos-and-slides-organized-andexplained/
Q&A
Download