Download presentation
Presentation is loading. Please wait.
Published byGary Wood Modified over 9 years ago
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
Peter App model Navigation Templates and Styles Services Mike Introduction Output Input Web Browser OS App Integration Parts 1 & 2
4
Silverlight for Windows Phone Goal Seamless code and knowledge sharing across Silverlight projects
5
Silverlight for Windows Phone
6
Peter App model Navigation Templates and Styles Services Mike Introduction Output Input Web Browser OS App Integration Parts 1 & 2
7
Demo 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 VibrateController vc = VibrateController.Default; vc.Start(TimeSpan.FromSeconds(3));
10
Peter App model Navigation Templates and Styles Services Mike Introduction Output Input Web Browser OS App Integration Parts 1 & 2
11
Demo SIP and Input Scope
12
Input
13
Accelerometer Measures force applied on each axis over time +Y -Y +X -X +Z -Z
14
Demo Accelerometer
15
Audio Input Mic 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
16
Peter App model Navigation Templates and Styles Services Mike Introduction Output Input Web Browser OS App Integration Parts 1 & 2
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 function runScriptStuff(arg1, arg2) { return “awesome”; } string out = wb.InvokeScript("runScriptStuff", arg1, arg2); Silverlight javascript
19
Script to Silverlight window.external.Notify(string); void wb_ScriptNotify(object s, NotifyEventArgs e) { string return = e.Value; } Silverlight javascript
20
Demo Web Browser Control
21
Peter App model Navigation Templates and Styles Services Mike Introduction Output Input Web Browser OS App Integration Parts 1 & 2
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
Demo SMS and Camera Capture
26
Launchers & Choosers Launchers BingMapsTask MarketplaceLauncher MediaPlayerLauncher PhoneCallTask PhoneNumberChooserTask PhotoChooserTask SaveEmailAddressTask SavePhoneNumberTask SearchTask SMSComposeTask WebBrowserTask Choosers 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
Usability Study 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 SusanTo@microsoft.com
29
Further Information 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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.