1 / 32

Advanced Features in Silverlight 5

Advanced Features in Silverlight 5. Nick Kramer Senior Program Manager Microsoft Corporation nkramer@microsoft.com. Agenda. Unrestricted File Access Trusted Apps In-Browser Group Policy P/Invoke HTML support Multiple Windows 64-bit PivotViewer. Silverlight Insurance. demo.

lexi
Télécharger la présentation

Advanced Features in Silverlight 5

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. Advanced Features in Silverlight 5 Nick Kramer Senior Program Manager Microsoft Corporation nkramer@microsoft.com

  2. Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer

  3. Silverlight Insurance demo

  4. Unrestricted File Access SL4 trusted apps can access: SL5 trusted apps can access:

  5. Unrestricted File Access demo

  6. Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer

  7. Trusted Apps • SL4: OOB apps run trusted with user consent • SL5: in-browser trusted apps with admin consent • Set permissions via group policy • No prompts or installs • Familiar navigation model • Can be part of a larger HTML site

  8. Trusted Apps (2)

  9. Creating a Trusted App (1) • Just like SL4 trusted OOB <OutOfBrowserSettings> <OutOfBrowserSettings.SecuritySettings> <SecuritySettingsElevatedPermissions="Required" /> </OutOfBrowserSettings.SecuritySettings> </OutOfBrowserSettings>

  10. Creating a Trusted App (2) • Sign the .xap • Same as for a trusted OOB • In Visual Studio or on command line signtool.exe sign /v /f nameOfCert.pfx /p "<password>" nameOfApp.xap or

  11. Trusted In-Browser App demo

  12. Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer

  13. Permissions in Group Policy • Actually, only one permission – trusted or not • Network admin specifies which publishers are trusted • Publishers identified by Authenticode certificate • Put certificate in client machine’s trusted publisher store • Same as ClickOnce • Xaps are associated with publishers by Authenticode

  14. Permissions in Group Policy (2) • Apps from localhost: are automatically trusted • Ease of development • In Beta, also need a registry key • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Silverlight\ AllowElevatedTrustAppsInBrowser=1

  15. Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer

  16. P/Invoke Coming Soon post beta • P/Invoke lets you call native code • COM (SL4) also lets you call native code • Anything you can do with COM can also be done with P/Invoke • Strongly typed • No COM registration • P/Invoke is optimized for Win32 APIs & native C/C++ code • COM is optimized for COM Automation APIs, eg Office • COM & P/Invoke are available on Windows to trusted apps

  17. P/Invoke (2) Coming Soon post beta • Works exactly like it does in .NET Framework [DllImport("kernel32.dll")] staticexternintGetDriveType(stringlpRootPathName); … int type = GetDriveType(drive);

  18. Coming Soon post beta P/Invoke demo

  19. Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer

  20. WebBrowserIn-Browser • Use HTML inside Silverlight apps • To reuse existing HTML/ASP.net content • To integrate with outside websites • In SL4, only OOBs got WebBrowser(WebOC) • In SL5, in-browser WebBrowser support (WebOC/IE)

  21. WebBrowser demo

  22. Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer

  23. Multiple Windows • System.Windows.Window is now an instantiable class • Windoww = newWindow(); • w.Height = 400; • w.Width = 600; • w.Content = new MyUserControl(); • w.Visibility = Visibility.Visible;

  24. Multiple Windows demo

  25. Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer

  26. 64-bit Support Coming Soon post beta • 64-bit machines & apps are becoming increasingly common • SL5 can run in a 64-bit process • 64-bit browsers • Sidebar on 64-bit Windows • Why 64-bit is interesting: • Because you don’t get to choose the browser • Because you’re native hosting in a 64-bit process • Because you need a lot of address space

  27. Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer

  28. PivotViewer Coming Soon post beta • Ships as part of the SL5 SDK • Dynamic client-based collections • XAML-based visuals • Customizability

  29. Coming Soon post beta PivotViewer demo

  30. Call to Action • Silverlight 5 ships second half of 2011 • Please give us feedback on the beta! • mailto:nkramer@microsoft.com • http://blogs.msdn.com/nickkramer/ • Questions?

  31. © 2011 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.

More Related