A new feature Silverlight 5 Beta has introduced is the ability to do some of the “trusted” features in the browser.
This brings the current functionality of trusted applications in current form to be used in the browser context without having to be installed.
This still requires the XAP to have the Elevated Permissions security setting in the manifest as it would exist with out-of-browser applications as well as the XAP being signed (and the certificate in the user’s trusted publisher store).
For example, Multiple window support has been added in Silverlight 5 Beta for Trusted OOB applications. Here’s a code snippet from xamlgeek.net
Silverlight 5 supports the ability to open multiple top-level windows. It is required that the application run with elevated permissions.
Closing the main application window will cause all windows to close.
I would be writing more in detail about each of the new Silverlight 5 features in future posts…
For more on how to create a trusted application follow the guide below:
Request elevated trust
Check the “Require elevated trust when running outside the browser” check box in the Out-of-Browser Settings dialog box.
When users attempt to install an application that requires elevated trust, they are shown a security warning instead of the normal install dialog box. The default warning indicates that the publisher is not verified, and does not display your application icon.
Sign your XAP
You should always sign an application that requires elevated trust to enable verification that you are the publisher. For debugging purposes, Visual Studio lets you create and use a test certificate.
A signed application still displays the security warning at install time, but the message is milder and includes your application icon.
If you would like to know more about application signing visit this MSDN article.
After installation, the trusted application can access all of the out-of-browser features. Additionally, it is not subject to security restrictions such as user-consent requests and full-screen keyboard limitations.
- Silverlight 4 Rough Notes: Trusted Applications
- Out-of-Browser Applications (Silverlight QuickStart)
- Out-of-Browser Support