Upload
dima-maleev
View
2.067
Download
2
Embed Size (px)
DESCRIPTION
Presentation made by Yra Oprushko for .Net User Group
Citation preview
Developing Silverlight applications for Windows Phone 7 using Visual Studio 2010
Yuriy Opryshko, independent developerFor Lviv .NET User Group
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
Brief history of Windows Mobile systems
Windows Phone Classic
Pocket PC 2000
The very first Windows Mobilesystem
Multiple CPU architectures
Basic features
Windows Phone Classic
Pocket PC 2002
Enhanced UI Smartphones support VPN support MSN Messenger Synchronization of
folders New applications
Windows Phone Classic
Windows Mobile 2003 and WM2003 SE
Four editions Bluetooth support New applications WPA support (SE) Support for different
screen resolutions
Windows Phone Classic
Windows Mobile 5
.NET Compact Framework 1.0
Office Mobile DirectShow GPS Support Better Bluetooth support New applications
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
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
Custom UI revamps for VM6
HTC Sense SPB Mobile Shell
Stylus-oriented system No multi-touch support Different UX on different phones Non-centralized application deployment …etc
Concerns of Windows Phone Classic
Windows Phone 7: New Features
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
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
Hubs
Office Hub Office Mobile SharePoint Outlook and OneNote
People Hub – Communication central All information for the
contact Live social feed updates
Marketplace
The consolidated place to acquire content Applications Games Music Xbox Live
The only way to install an application
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
Windows Phone 7 Application Platform
Overview
Two frameworks: Silverlight and XNA Development: Visual Studio + Expression
Blend + Cloud services ‘focus on consumers and the information and
experiences they care about’
Overview
The 3 Screens
Application Platform Architecture
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
Silverlight and .NET Framework XNA Framework Sensors Media Data Location
Runtimes On “Screen”
Registration and Validation Certification, Publishing and Update
Management Windows Phone Marketplace and Billing Business Intelligence
Developer Portal Services
Notifications Location Identity, Feeds, Social, and Maps Services Azure
Cloud Services
Application Development Lifecycle
Demo: Hello World!
Developing for Windows Phone 7 with Silverlight
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
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
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)
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
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
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
Demo: Weather Forecast
Q&A
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!