Developing silverlight applications for windows phone 7 series


Published on

Presentation made by Yra Oprushko for .Net User Group

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Developing silverlight applications for windows phone 7 series

  1. 1. YuriyOpryshko, independent developer<br />For Lviv .NET User Group<br />Developing Silverlight applications for Windows Phone 7 using Visual Studio 2010 <br />
  2. 2. Brief history of Windows Mobile systems<br />Windows Phone 7: New features<br />Application Platform Overview<br />Demo: Hello World!<br />Developing for Windows Phone 7 with Silverlight<br />Demo: Weather Forecast<br />Q&A<br />Agenda<br />
  3. 3. Brief history of Windows Mobile systems<br />
  4. 4. Windows Phone Classic<br />Pocket PC 2000 <br />The very first Windows Mobilesystem<br />Multiple CPU architectures<br />Basic features<br />
  5. 5. Windows Phone Classic<br />Pocket PC 2002<br />Enhanced UI<br />Smartphones support<br />VPN support<br />MSN Messenger<br />Synchronization of folders<br />New applications<br />
  6. 6. Windows Phone Classic<br />Windows Mobile 2003 and WM2003 SE<br />Four editions<br />Bluetooth support<br />New applications<br />WPA support (SE)<br />Support for different screen resolutions<br />
  7. 7. Windows Phone Classic<br />Windows Mobile 5<br />.NET Compact Framework 1.0<br />Office Mobile<br />DirectShow<br />GPS Support<br />Better Bluetooth support<br />New applications<br />
  8. 8. Windows Phone Classic<br />Windows Mobile 6<br />.NET Compact Framework 2.0<br />SQL Server 2005 CE<br />VoIP support<br />Windows Live<br />Exchange 2007 support<br />AJAX and JavaScript support in Internet Explorer Mobile<br />New applications<br />
  9. 9. Windows Phone Classic<br />Windows Mobile 6.5<br />‘not the full release wanted’ – Steve Ballmer<br />New GUI and Today screen<br />More finger-friendly<br />Internet Explorer Mobile 6.0<br />Cloud services<br />
  10. 10. Custom UI revamps for VM6<br />HTC Sense<br />SPB Mobile Shell<br />
  11. 11. Stylus-oriented system<br />No multi-touch support<br />Different UX on different phones<br />Non-centralized application deployment<br />…etc<br />Concerns of Windows Phone Classic<br />
  12. 12. Windows Phone 7: New Features<br />
  13. 13. Windows Phone 7 is not just a new version – it is completely different from Windows Phone Classic<br />End user comes first<br />UI consistency between manufacturers<br />Predictable hardware specification<br />The New Approach<br />
  14. 14. Completely New ‘Metro’ UI<br />Native Multi-touch support<br />Hubs – the feature centers<br />Centralized content Marketplace<br />Live Mesh synchronization<br />Lots of apps<br />… and a lot more!<br />New features: user’s view<br />
  15. 15. Hubs<br />Office Hub<br />Office Mobile<br />SharePoint<br />Outlook and OneNote<br />People Hub – Communication central<br />All information for the contact<br />Live social feed updates<br />
  16. 16. Marketplace<br />The consolidated place to acquire content<br />Applications<br />Games<br />Music<br />Xbox Live<br />The only way to install an application<br />
  17. 17. No more .NET Compact Framework<br />Silverlight 4! XNA!<br />Hardware consistency between models<br />Lots and lots of API’s<br />GPS<br />Virtual Keyboard<br />…lots more<br />Marketplace for distributing applications<br />New features: developer’s view<br />
  18. 18. Windows Phone 7 Application Platform Overview<br />
  19. 19. Two frameworks: Silverlight and XNA<br />Development: Visual Studio + Expression Blend + Cloud services<br />‘focus on consumers and the information and experiences they care about’<br />Overview<br />
  20. 20. The 3 Screens<br />
  21. 21. Application Platform Architecture<br />
  22. 22. Visual Studio 2010 - IDE<br />Expression Blend – Interface design<br />Windows Phone Emulator – application deployment and debugging<br />XNA Game Studio – managed 2D and 3D game development<br />Samples, Documentation, Guides and Community<br />Tools and Support<br />
  23. 23. Silverlight and .NET Framework<br />XNA Framework<br />Sensors<br />Media<br />Data<br />Location<br />Runtimes On “Screen”<br />
  24. 24. Registration and Validation<br />Certification, Publishing and Update Management<br />Windows Phone Marketplace and Billing<br />Business Intelligence<br />Developer Portal Services<br />
  25. 25. Notifications<br />Location<br />Identity, Feeds, Social, and Maps Services<br />Azure<br />Cloud Services<br />
  26. 26. Application Development Lifecycle<br />
  27. 27. Demo: Hello World!<br />
  28. 28. Developing for Windows Phone 7 with Silverlight<br />
  29. 29. Free download from<br />Includes Visual Studio 2010 Express for Windows Phone and an add-in for Visual Studio 2010<br />Current version based on Release Candidate of VS and is not compatible with RTM version<br />Windows Phone Developer Tools<br />
  30. 30. Media support<br />Hardware decoding<br />XNA framework sound effect API<br />Supports polyphonic, looping wav data<br />MediaElement limitations<br />Only one MediaElement per page<br />No VideoBrush support<br />Media<br />
  31. 31. Vibration<br />Accelerometer<br />Measures force applied on each axis over time<br />Location service<br />Sensors and controllers<br />VibrateControllervc = VibrateController.Default;<br />vc.Start(TimeSpan.FromSeconds(3));<br />GeoCoordinateWatcher watcher = <br />newGeoCoordinateWatcher(GeoPositionAccuracy.Low)<br />
  32. 32. TextBox supports different InputScopes<br />Examples are Text, Url, Number, Time, TelephoneNumber and Address<br />ScrollViewer has built-in support for gestures such as pan and flick.<br />Audio input gives access to raw PCM WAV data<br />Calls BufferReady at regular intervals, or the application can call GetData at any time<br />10ms latency<br />Input<br />
  33. 33. Can display local and network content<br />Supports pan, double tap and pinch for zooming<br />No in-browser Silverlight at the initial release<br />Application can interact with JavaScript<br />Disabled by default<br />Web browser control<br />
  34. 34. Silverlight to Javascript<br />string result = wb.InvokeScript(“myFunction”, arg);<br />function myFunction(arg) { return “.NET community”; }<br />Javascript to Silverlight<br />void wb_ScriptNotify(object sender, NotifyEventArgs e){ MessageBox.Show(e.Value); }<br />window.external.notify(“.NET community”)<br />Web browser integration<br />
  35. 35. Demo: Weather Forecast<br />
  36. 36. Q&A<br />
  37. 37.<br />Windows Phone 7 Developer Center:<br />WP7 Developer Tools:<br /><br />Thank you!<br />