1 / 31

Building Windows Phone Applications with Silverlight

Building Windows Phone Applications with Silverlight. Jaime Rodriguez http://blogs.msdn.com/jaimer @ jaimerodriguez. Agenda. Introduction App model Navigation Events Phone Controls Panorama Pivot Web Browser Bing Maps Control DeepZoom Templates and Styles

ull
Download Presentation

Building Windows Phone Applications with Silverlight

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 Jaime Rodriguez http://blogs.msdn.com/jaimer@jaimerodriguez

  2. Agenda • Introduction • App model • Navigation • Events • Phone Controls • Panorama • Pivot • Web Browser • Bing Maps Control • DeepZoom • Templates and Styles • OS and in-box App Integration

  3. Silverlight for Windows Phone 3

  4. AppModel

  5. UI Navigation: Example Pictures Take a look at recent photos People Look up the status for a contact Pictures Continue looking at recent photos

  6. Navigation • PhoneApplicationFrame • PhoneApplicationPage

  7. PhoneApplicationPage • More than the container for units of navigation • OnChooserReturn • OnOrientationChanged • OnNavigatedFrom • OnNavigatedTo • OnBackKeyPress

  8. Back key • Lets the user to return to previously-viewed screens • Can go back across applications • Not used for application-specific behaviour

  9. Application Navigation

  10. Application events • Obscuring • Activation

  11. a world of constant interruptions phone calls low battery lock screen reminders App switch txt msgs :-)

  12. basic application lifetime • Splash screen • App constructor • Startup event • Exit event • Obscured • Paused

  13. Not in the Mix build obscured: popup ui from shell • Phone call • Reminder • Battery low Games could auto-pause Game could auto-resume What if they answer the phone?

  14. Not in the Mix build paused: jump to another app • Start Button • Accept call • Open toast Load state to continue where you left off User never knows what happened :-) Assume your process is killed Save state for later use

  15. Pause and Exit

  16. Windows Phone Controls

  17. Panorama

  18. Panorama

  19. Pivot

  20. ApplicationBar & SystemTray • SystemTray • No integration, but does affect Layout • Show:Hide using SystemTray.IsVisible • ApplicationBar • Buttons (up to 4) • Menu Items ( recommend 6) • Toggle: • <mypage>.ApplicationBar.IsVisible

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

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

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

  24. Web Browser Control

  25. MultiScaleImage ( aka deepzoom) • Included in core run-time • Optimized to take advantage of GPU • Consumes same content as SL on desktop • Supported for Online content • not isolated storage or embedded content • No oob gesture support • Manipulation APIs make this easy though

  26. OS and hub integration

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

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

  29. Launchers

  30. Isolated Storage • Compatible APIs with Silverlight on desktop • No quota limits • Not shared (ever) • No write access to Media Library, use XNA for that • Use for your application settings

  31. Thanks!! Questions?

More Related