320 likes | 623 Views
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.
E N D
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
Unrestricted File Access SL4 trusted apps can access: SL5 trusted apps can access:
Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer
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
Creating a Trusted App (1) • Just like SL4 trusted OOB <OutOfBrowserSettings> <OutOfBrowserSettings.SecuritySettings> <SecuritySettingsElevatedPermissions="Required" /> </OutOfBrowserSettings.SecuritySettings> </OutOfBrowserSettings>
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
Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer
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
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
Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer
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
P/Invoke (2) Coming Soon post beta • Works exactly like it does in .NET Framework [DllImport("kernel32.dll")] staticexternintGetDriveType(stringlpRootPathName); … int type = GetDriveType(drive);
Coming Soon post beta P/Invoke demo
Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer
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)
WebBrowser demo
Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer
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;
Multiple Windows demo
Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer
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
Agenda • Unrestricted File Access • Trusted Apps In-Browser • Group Policy • P/Invoke • HTML support • Multiple Windows • 64-bit • PivotViewer
PivotViewer Coming Soon post beta • Ships as part of the SL5 SDK • Dynamic client-based collections • XAML-based visuals • Customizability
Coming Soon post beta PivotViewer demo
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?
© 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.