Top Banner

Click here to load reader

of 46

David Eitan Poll Program Manager | Microsoft Silverlight Microsoft Corporation SESSION CODE: WEB313.

Jan 17, 2018

Download

Documents

Silverlight 3 Silverlight 4 New out-of- browser features Trusted appsDemos and code RecapDemos and code Out-of-browser app support
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript

David Eitan Poll Program Manager | Microsoft SilverlightMicrosoft Corporation SESSION CODE: WEB313 Silverlight 3 Silverlight 4 New out-of- browser features Trusted appsDemos and code RecapDemos and code Out-of-browser app support In Silverlight 4 Silverlight Web content $ top, left height width topmost x You have 325 new voic s Listen NotificationWindow toast = new NotificationWindow(); toast.Content = new ToastContent(); toast.Content.MouseLeftButtonUp += (s, arg) => { Application.Current.MainWindow.Activate(); }; toast.Show(4000); New Business Models Subscription Rental Purchase New Features Persistent license storage Time based policies Secure H.264 and AAC decoders Support for Output Protection sllauncher.exe /install:"somePath\myApp.xap" /origin:"http://any.site.com/myApp.xap" /shortcut:desktop+startmenu /overwrite sllauncher.exe /install:"somePath\myApp.xap" /origin:"http://any.site.com/myApp.xap" /shortcut:desktop+startmenu /overwrite sllauncher.exe /uninstall /origin:"http://any.site.com/myApp.xap" Platform Specific Usage sllauncher.exe /emulate:"somePath\myApp.xap" /origin:"http://any.site.com/myApp.xap" /overwrite sllauncher.exe /emulate:"somePath\myApp.xap" /origin:"http://any.site.com/myApp.xap" /overwrite // defensive code == portable code if (Application.Current.HasElevatedPermissions) { // look ma, no path hard-coding! // this code works on Mac, Windows, everywhere string path = Environment.GetFolderPath( Environment.SpecialFolder.MyVideos); string mediaFile = Path.Combine(path, "Foo.mp4"); if (!File.Exists(mediaFile)) { using (FileStream fs = File.Create(mediaFile)) { //... } Remove the Shell chrome and window border Rectangular window Rectangular window with rounded corners Supported in Silverlight 4 Property get/set, indexed property get/set Positional and optional parameters Support by-ref and by-value In proc and out of proc servers Support for basic data types VARIANT, BSTR, SAFEARRAY, IEnumVARIANT Silverlight app as event sink Not in Silverlight 4 Multi-dimensional arrays Named parameters Type Information Support for COM Elevation moniker // defensive code == portable code if (AutomationFactory.IsAvailable) { dynamic xl = AutomationFactory.CreateObject("Excel.Application"); xl.Visible = true; xl.Workbooks.Add(); //... } For Consumers Reassurance on authenticity and integrity of app Clear publisher and provenance info on app For App Developers Better install-time UX App Icon Publisher name Seamless updates No updates for unsigned apps No updates when certs mismatch Highly Recommended Highly Recommended XAML + JavaScript v1.0 XAP and managed code 2 Beyond the browser 3 Trusted apps 4 Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Sign up for TechEd 2011 and save $500 starting June 8 June 31 stYou can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year