developing windows phone 7 application with silverlight

22
Building Windows Phone Applications with Silverlight Nguyen Thanh Tung Project Manager - MISA JSC

Upload: nguyen-tung

Post on 29-Nov-2014

92 views

Category:

Technology


0 download

DESCRIPTION

Introduction to develop windows phone 7 application with Silverlight. My presentation at Vietnam Mobile Day 2012

TRANSCRIPT

Page 1: Developing windows phone 7 application with silverlight

Building Windows Phone Applications with Silverlight

Nguyen Thanh TungProject Manager - MISA JSC

Page 2: Developing windows phone 7 application with silverlight

Nguyen Thanh Tung

• Project Manager at MISA JSC• Mostly working with Microsoft tech:

• XAML• Silverlight• Entity Framework• ASP.NET• Windows Phone• Windows 8 and more

• http://tungnt.net• https://www.facebook.com/tungnt185

Page 3: Developing windows phone 7 application with silverlight

Agenda

1. Introduction to Windows Phone 7

2. Silverlight and XNA framework

3. Developing Windows Phone 7 Application with Silverlight

Page 4: Developing windows phone 7 application with silverlight

Different, For Good Reasons

Smart Design

Integrated Experiences

Photo by: Andrew Butitta, Founder, Talisman Digital Photography

Page 5: Developing windows phone 7 application with silverlight

Integrated Experiences

PEOPLE OFFICE

MARKETPLACE

PICTURES MUSIC+VIDEO

GAMES

Page 6: Developing windows phone 7 application with silverlight

Platform Goals

Help end users personalize their phones

Help developers be profitable

Enable cloud powered experiences

Page 7: Developing windows phone 7 application with silverlight

Agenda

1. Introduction to Windows Phone 7

2. Silverlight and XNA framework

3. Developing Windows Phone 7 Application with Silverlight

Page 8: 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

Page 9: Developing windows phone 7 application with silverlight

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”

Page 10: Developing windows phone 7 application with silverlight

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

Page 11: Developing windows phone 7 application with silverlight

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

Page 12: Developing windows phone 7 application with silverlight

Agenda

1. Introduction to Windows Phone 7

2. Silverlight and XNA framework

3. Developing Windows Phone 7 Application with Silverlight

Page 13: 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

Page 14: Developing windows phone 7 application with silverlight

Demo

HelloWorld Application

Page 15: Developing windows phone 7 application with silverlight

Navigation and Controls

PhoneApplicationFrame PhoneApplicationPage Using navigation services Handling the back button Control phone orientation Application bar – System tray ListBox WebBrowser Hyperlink buttons Media

Page 16: Developing windows phone 7 application with silverlight

Push notifications

- RawNotificationMessage- TileNotificationMessage- ToastNotificationMessage

Page 17: Developing windows phone 7 application with silverlight

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

Page 18: Developing windows phone 7 application with silverlight

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

Page 19: Developing windows phone 7 application with silverlight

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 …

Page 21: Developing windows phone 7 application with silverlight

Q & A

Page 22: Developing windows phone 7 application with silverlight

© 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.