Developing silverlight applications for windows phone 7 series

37
Developing Silverlight applications for Windows Phone 7 using Visual Studio 2010 Yuriy Opryshko, independent developer For Lviv .NET User Group

description

Presentation made by Yra Oprushko for .Net User Group

Transcript of Developing silverlight applications for windows phone 7 series

Page 1: Developing silverlight applications for windows phone 7 series

Developing Silverlight applications for Windows Phone 7 using Visual Studio 2010

Yuriy Opryshko, independent developerFor Lviv .NET User Group

Page 2: Developing silverlight applications for windows phone 7 series

Brief history of Windows Mobile systems Windows Phone 7: New features Application Platform Overview Demo: Hello World! Developing for Windows Phone 7 with

Silverlight Demo: Weather Forecast Q&A

Agenda

Page 3: Developing silverlight applications for windows phone 7 series

Brief history of Windows Mobile systems

Page 4: Developing silverlight applications for windows phone 7 series

Windows Phone Classic

Pocket PC 2000

The very first Windows Mobilesystem

Multiple CPU architectures

Basic features

Page 5: Developing silverlight applications for windows phone 7 series

Windows Phone Classic

Pocket PC 2002

Enhanced UI Smartphones support VPN support MSN Messenger Synchronization of

folders New applications

Page 6: Developing silverlight applications for windows phone 7 series

Windows Phone Classic

Windows Mobile 2003 and WM2003 SE

Four editions Bluetooth support New applications WPA support (SE) Support for different

screen resolutions

Page 7: Developing silverlight applications for windows phone 7 series

Windows Phone Classic

Windows Mobile 5

.NET Compact Framework 1.0

Office Mobile DirectShow GPS Support Better Bluetooth support New applications

Page 8: Developing silverlight applications for windows phone 7 series

Windows Phone Classic

Windows Mobile 6

.NET Compact Framework 2.0

SQL Server 2005 CE VoIP support Windows Live Exchange 2007 support AJAX and JavaScript support

in Internet Explorer Mobile New applications

Page 9: Developing silverlight applications for windows phone 7 series

Windows Phone Classic

Windows Mobile 6.5

‘not the full release wanted’ – Steve Ballmer

New GUI and Today screen

More finger-friendly Internet Explorer Mobile

6.0 Cloud services

Page 10: Developing silverlight applications for windows phone 7 series

Custom UI revamps for VM6

HTC Sense SPB Mobile Shell

Page 11: Developing silverlight applications for windows phone 7 series

Stylus-oriented system No multi-touch support Different UX on different phones Non-centralized application deployment …etc

Concerns of Windows Phone Classic

Page 12: Developing silverlight applications for windows phone 7 series

Windows Phone 7: New Features

Page 13: Developing silverlight applications for windows phone 7 series

Windows Phone 7 is not just a new version – it is completely different from Windows Phone Classic

End user comes first UI consistency between manufacturers Predictable hardware specification

The New Approach

Page 14: Developing silverlight applications for windows phone 7 series

Completely New ‘Metro’ UI Native Multi-touch support Hubs – the feature centers Centralized content Marketplace Live Mesh synchronization Lots of apps … and a lot more!

New features: user’s view

Page 15: Developing silverlight applications for windows phone 7 series

Hubs

Office Hub Office Mobile SharePoint Outlook and OneNote

People Hub – Communication central All information for the

contact Live social feed updates

Page 16: Developing silverlight applications for windows phone 7 series

Marketplace

The consolidated place to acquire content Applications Games Music Xbox Live

The only way to install an application

Page 17: Developing silverlight applications for windows phone 7 series

No more .NET Compact Framework Silverlight 4! XNA! Hardware consistency between models Lots and lots of API’s

GPS Virtual Keyboard …lots more

Marketplace for distributing applications

New features: developer’s view

Page 18: Developing silverlight applications for windows phone 7 series

Windows Phone 7 Application Platform

Overview

Page 19: Developing silverlight applications for windows phone 7 series

Two frameworks: Silverlight and XNA Development: Visual Studio + Expression

Blend + Cloud services ‘focus on consumers and the information and

experiences they care about’

Overview

Page 20: Developing silverlight applications for windows phone 7 series

The 3 Screens

Page 21: Developing silverlight applications for windows phone 7 series

Application Platform Architecture

Page 22: Developing silverlight applications for windows phone 7 series

Visual Studio 2010 - IDE Expression Blend – Interface design Windows Phone Emulator – application

deployment and debugging XNA Game Studio – managed 2D and 3D

game development Samples, Documentation, Guides and

Community

Tools and Support

Page 23: Developing silverlight applications for windows phone 7 series

Silverlight and .NET Framework XNA Framework Sensors Media Data Location

Runtimes On “Screen”

Page 24: Developing silverlight applications for windows phone 7 series

Registration and Validation Certification, Publishing and Update

Management Windows Phone Marketplace and Billing Business Intelligence

Developer Portal Services

Page 25: Developing silverlight applications for windows phone 7 series

Notifications Location Identity, Feeds, Social, and Maps Services Azure

Cloud Services

Page 26: Developing silverlight applications for windows phone 7 series

Application Development Lifecycle

Page 27: Developing silverlight applications for windows phone 7 series

Demo: Hello World!

Page 28: Developing silverlight applications for windows phone 7 series

Developing for Windows Phone 7 with Silverlight

Page 29: Developing silverlight applications for windows phone 7 series

Free download from developer.windowsphone.com

Includes Visual Studio 2010 Express for Windows Phone and an add-in for Visual Studio 2010

Current version based on Release Candidate of VS and is not compatible with RTM version

Windows Phone Developer Tools

Page 30: Developing silverlight applications for windows phone 7 series

Media support Hardware decoding

XNA framework sound effect API Supports polyphonic, looping wav data

MediaElement limitations Only one MediaElement per page No VideoBrush support

Media

Page 31: Developing silverlight applications for windows phone 7 series

Vibration

Accelerometer Measures force applied on each axis over time

Location service

Sensors and controllers

VibrateController vc = VibrateController.Default;vc.Start(TimeSpan.FromSeconds(3));

GeoCoordinateWatcher watcher = new GeoCoordinateWatcher(GeoPositionAccuracy.Low)

Page 32: Developing silverlight applications for windows phone 7 series

TextBox supports different InputScopes Examples are Text, Url, Number, Time,

TelephoneNumber and Address ScrollViewer has built-in support for gestures

such as pan and flick. Audio input gives access to raw PCM WAV data

Calls BufferReady at regular intervals, or the application can call GetData at any time

10ms latency

Input

Page 33: Developing silverlight applications for windows phone 7 series

Can display local and network content Supports pan, double tap and pinch for

zooming No in-browser Silverlight at the initial release Application can interact with JavaScript

Disabled by default

Web browser control

Page 34: Developing silverlight applications for windows phone 7 series

Silverlight to Javascript string result = wb.InvokeScript(“myFunction”, arg); function myFunction(arg) { return “.NET community”;

}

Javascript to Silverlight void wb_ScriptNotify(object sender, NotifyEventArgs

e){ MessageBox.Show(e.Value); }

window.external.notify(“.NET community”)

Web browser integration

Page 35: Developing silverlight applications for windows phone 7 series

Demo: Weather Forecast

Page 36: Developing silverlight applications for windows phone 7 series

Q&A

Page 37: Developing silverlight applications for windows phone 7 series

WindowsPhone7.com Windows Phone 7 Developer Center:

http://developer.windowsphone.com/windows-phone-7-series/

WP7 Developer Tools:http://go.microsoft.com/?linkid=9713250

twitter.com/mcm69 dotnetshack.blogspot.com

Thank you!