1 / 37

An In-Depth view at Building Applications for Windows Phone 7 with Silverlight ( Part 1)

Required Slide. SESSION CODE: WPH304. An In-Depth view at Building Applications for Windows Phone 7 with Silverlight ( Part 1). Shawn Oster Program Manager | Silverlight Microsoft Corporation. Silverlight for Windows Phone.

abeni
Download Presentation

An In-Depth view at Building Applications for Windows Phone 7 with Silverlight ( Part 1)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Required Slide SESSION CODE: WPH304 An In-Depth view at Building Applications for Windows Phone 7 with Silverlight (Part 1) Shawn Oster Program Manager | Silverlight Microsoft Corporation

  2. Silverlight for Windows Phone • Silverlight and XNA are the basis of the Windows Phone application platform • In-browser Silverlight is not part of the first Windows Phone release • This will be a lap around the platform

  3. Parts 1 & 2 Part 1 • Introduction • Input • Output • Web Browser • OS App Integration Part 2 • Application structure • Controls & theming • Connected services

  4. Goal Seamless code and knowledge sharing across Silverlight projects

  5. Silverlight for Windows Phone 3

  6. Parts 1 & 2 Part 1 • Introduction • Input • Output • Web Browser • OS App Integration Part 2 • Application structure • Controls & theming • Connected services

  7. Software Keyboard & InputScope DEMO

  8. Text Input • TextBoxintegrates with the software keyboard • Software keyboard supports input scoping • Key InputScopes: • EmailNameOrAddress • Text • Url • Number • Time • TelephoneNumber • PasswordBox has a 1 second delay

  9. Manipulation Events DEMO

  10. Touch • Three types of touch input: • Mouse events • Manipulation events • Silverlight 3 Touch class (FrameReported) • ScrollViewer has built-in support for pan and flick • Manipulation events expose pinch and stretch

  11. Accelerometer +Y Measures force applied on each axis over time -Z +X +Z -Y

  12. Accelerometer DEMO

  13. Audio Input Microphone input • Gives access to raw PCM WAV data • Calls BufferReady event at regular intervals • Call the GetData method from the BufferReady event or as often as your app requires • 10ms latency

  14. Parts 1 & 2 Part 1 • Introduction • Input • Output • Web Browser • OS App Integration Part 2 • Application structure • Controls & theming • Connected services

  15. Media & Vibrate DEMO

  16. Media • Media support • H/W decode • MediaStreamSource • PlayReady DRM • MediaElement Limitations • One MediaElement only • No VideoBrush • XNA sound effect API • Supports polyphonic, looping wav data

  17. Vibration • Vibrates the phone for a given duration • Useful for games • Notifying users of updates VibrateControllervc = VibrateController.Default; vc.Start(TimeSpan.FromSeconds(2));

  18. Parts 1 & 2 Part 1 • Introduction • Input • Output • Web Browser • OS App Integration Part 2 • Application structure • Controls & theming • Connected services

  19. Web Browser Control • Displays network and local content • Supports pan, double tap and pinch to zoom • Supports transforms & projections • Application can interact with javascript • Optimized for privacy • Script is disabled by default • Cookies and cache are isolated

  20. Silverlight to Script Silverlight string fromScript = wb.InvokeScript("runScriptStuff", arg1, arg2); JavaScript function runScriptStuff(arg1, arg2) { return “awesome”; }

  21. Script to Silverlight Silverlight void wb_ScriptNotify(object s, NotifyEventArgs e) { string fromScript = e.Value; } javascript window.external.Notify(string);

  22. Web Browser Control demo

  23. Parts 1 & 2 • Part 1 • Introduction • Input • Output • Web Browser • OS App Integration • Part 2 • Application structure • Controls & theming • Connected services

  24. Integrating with the OS • Hub integration • Enhance the built in hubs with your application • Launchers let you fire and forget to an OS app • SMS, email, web browser, maps, dialer, search, etc • Choosers are like an open file dialog • Launches an OS experience for letting the user choose data for the app • Picture, contact, camera, etc

  25. Launchers & Choosers demo

  26. Launchers & Choosers Launchers • BingMapsTask • MarketplaceLauncher • MediaPlayerLauncher • PhoneCallTask • SaveEmailAddressTask • SavePhoneNumberTask • SearchTask • EmailComposeTask • SMSComposeTask • WebBrowserTask Choosers • CameraCaptureTask • PhoneNumberChooserTask • PhotoChooserTask • EmailAddressChooserTask

  27. Required Slide Speakers, please list the Breakout Sessions, Interactive Sessions, Labs and Demo Stations that are related to your session. Related Content • WPH305 - An In-Depth View of Building Applications for Windows Phone 7 with Microsoft Silverlight (Part 2) • WPH306 - Developing Occasionally Connected Applications for Windows Phone • WPH309 - Microsoft Silverlight Performance on Windows Phone • WPH310 - Designing and Developing for the Rich Mobile Web

  28. Windows Phone Resources Questions? Demos? The Latest phones? Visit the Windows Phone Technical Learning Center for demos and more… • Business IT Resources www.windowsphone.com/business • Developer Resources developer.windowsphone.com • Experience Windows Phone 7 on-line and get a backstage pass www.windowsphone7.com

  29. Win a Windows Phone Contest Hat Contest* How do you enter? Enter by visiting the Windows Phone booth, accepting a free Windows Phone branded hat, and wearing that hat during the Event. How am I selected? Each day of the event, a Windows Phone representative will randomly select up to 5 people who are observed wearing their Windows Phone branded hat Session Contest* During each Windows Phone session the moderator will post a question. The first person to correctly answer the question and called on by the moderator will potentially win Questions? Go to the WPH Information Counter at the TLC * Restrictions apply please see contest rules for eligibility and restrictions. Contest rules are displayed in the Technical Learning Center at the WPH info counter.

  30. Related Windows Phone Content – Breakout Sessions Mon &Tue Monday WPH301WP7: Deploy Microsoft Forefront Unified Access Gateway for Access Control to SharePoint, Exchange and more. WPH202 Deploying Windows Phone 7 with Exchange Server and SharePoint Server Tuesday WPH203 Overview of the Windows Phone 7 Application Platform WPH313 Windows Phone 7 Architecture Deep Dive WPH304 An In-Depth view at Building Applications for WP7 with Silverlight (Part 1) WPH305 An In-Depth view at Building Applications for WP7 with Silverlight (Part 2) WPH306 Developing Occasionally Connected Applications for Windows Phone 7

  31. Related Windows Phone Content – Breakout Sessions Wed &Thu Wednesday WPH310 Designing and Developing for the Rich Mobile Web WPH311 Developing Mobile Code Today that will run on WP 7 Tomorrow WPH309 Silverlight performance on Windows Phone WPH307 Building Windows Phone Games with XNA WPH308 Building a High Performance 3D Game for Windows Phone Thursday WPH303 Understanding the Windows Phone 7 Development Tools WPH314 Learn Windows Phone 7 Development by Creating a Robotic T-Shirt Cannon WPH312 Understanding Marketplace and Making Money with WP7 Applications

  32. Related Windows Phone Content – Interactive Session & HOL Windows Phone Interactive Sessions Windows Phone 7 Demo Only! Microsoft’s Next Generation Mobile Enterprise Application Platform (MEAP) Windows Phone 7 Application Performance Prepare for Windows Phone 7 Development! Coding practices you should start using now in Windows Mobile Windows Phone Hands On Labs Hello Windows Phone - Building Your first Windows Phone Application Microsoft Silverlight for Windows Phone Microsoft XNA Framework 4.0 for Windows Phones Using Push Notifications and Windows Communication Foundation (WCF) Services

  33. Required Slide Resources Learning • Sessions On-Demand & Community • Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers • http://microsoft.com/technet • http://microsoft.com/msdn

  34. Required Slide Complete an evaluation on CommNet and enter to win!

  35. Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st http://northamerica.msteched.com/registration You can also register at the North America 2011 kiosk located at registrationJoin us in Atlanta next year

  36. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.

  37. Required Slide

More Related