1 / 33

Building Windows Phone Applications with Silverlight (Part 1)

Building Windows Phone Applications with Silverlight (Part 1). Mike Harsh Program Manager, Microsoft. Silverlight for Windows Phone. Silverlight and the XNA framework are the basis of the Windows Phone application platform In-browser Silverlight is not part of the first Windows Phone release

arnon
Download Presentation

Building Windows Phone Applications 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. Building Windows Phone Applications with Silverlight (Part 1) Mike Harsh Program Manager, Microsoft

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

  3. Parts 1 & 2 Mike • Introduction • Output • Input • Web Browser • OS App Integration Peter • App model • Navigation • Templates and Styles • Services

  4. Silverlight for Windows Phone Goal Seamless code and knowledge sharing across Silverlight projects

  5. Silverlight for Windows Phone 3

  6. Parts 1 & 2 Mike • Introduction • Output • Input • Web Browser • OS App Integration Peter • App model • Navigation • Templates and Styles • Services

  7. Media & Vibrate

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

  9. Vibration • Vibrates the phone for a given duration • Useful for haptic feedback • Notifying users of updates VibrateControllervc = VibrateController.Default; vc.Start(TimeSpan.FromSeconds(3));

  10. Parts 1 & 2 Mike • Introduction • Output • Input • Web Browser • OS App Integration Peter • App model • Navigation • Templates and Styles • Services

  11. SIP and Input Scope

  12. Input • Silverlight TextBox integrates with the SIP • Supports and scrolling • Password has a delay • SIP supports input scoping • Key InputScopes: Text, Url, Number, Time, TelephoneNumber, EmailNameOrAddress • ScrollViewer has built-in support for pan and flick.

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

  14. Accelerometer

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

  16. Parts 1 & 2 Mike • Introduction • Output • Input • Web Browser • OS App Integration Peter • App model • Navigation • Templates and Styles • Services

  17. Web Browser Control • Displays network and local content • Supports pan, double tap and pinch to zoom • Supports transforms • Application can interact with javascript • Disabled by default

  18. Silverlight to Script Silverlight string out = wb.InvokeScript("runScriptStuff", arg1, arg2); javascript function runScriptStuff(arg1, arg2) { return “awesome”; }

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

  20. Web Browser Control

  21. Parts 1 & 2 Mike • Introduction • Output • Input • Web Browser • OS App Integration Peter • App model • Navigation • Templates and Styles • Services

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

  23. Hub Integration – Media History • Apps can insert entries into the history list

  24. Hub Integration - Photos • Your app can integrate with the OS image viewer • One click away from extras menu

  25. SMS and Camera Capture

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

  27. Silverlight 3 API Delta • Application model • Out of Browser APIs • Browser & plug-in specific APIs • HTML Dom Bridge • Machine information • GpuInformation • Analytics • Custom shaders • Media markers and attributes

  28. There will be Windows Phone focus groups on Wednesday, March 17th at 10am, 11:30am, and 2pm in the Mandalay Bay If you are interested in participating in these focus groups or future Windows Phone research, please email SusanTo@microsoft.com Usability Study

  29. Further Information • <Insert docs reference> • http://blogs.msdn.com/mharsh

  30. Feedback Guidelines • We know some things are not right… • Control templates are not complete • Key controls like pivot don’t exist • Missing animation support • Some things we really need feedback on… • Code re-use with desktop • Push integration • Application lifecycle • “Background” scenarios for a future release

  31. Please fill out the evaluation form!

  32. Q & A

More Related