Steady Silverlight (45)-4.0 trusted applications running outside of the browser (out of Browser) (Trusted application)
Introduced
The trusted application of Silverlight 4.0 OOB:
* Overview
* Access to the local file system
* Invoke COM interface
* Customizing window styles and Behavior
Online Demo
Http://www.cnblogs.com/webabcd/archive/2010/08/09/1795417.html
Example
1. A brief overview of "Trusted Applications"
Demo.xaml
Code
<navigation:page x:class= "Silverlight40.TrustedApplication.Demo"
Xmlns= "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x= "Http://schemas.microsoft.com/winfx/2006/xaml"
Xmlns:d= "http://schemas.microsoft.com/expression/blend/2008"
Xmlns:mc= "http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:navigation= "Clr-namespace:system.windows.controls;assembly=system.windows.controls.navigation"
Title= "Other Page" >
<grid x:name= "LayoutRoot" >
<stackpanel horizontalalignment= "Left" >
<textblock margin= "5" text= trusted applications-raising the trust level for applications outside of the browser. Right-click the-> property on the Silverlight project-> Silverlight-> out-of-browser Settings-> Select Require Elevated trust when Runnin G Outside the browser "/>
<textblock margin= "5" text= "Application.Current.HasElevatedPermissions-determine if the application in OOB mode is a trusted Application"/>
<textblock margin= "5" text= can communicate across domains without a policy file, and TCP communication ports are no longer limited to 4502-4534 "/>
<textblock margin= "5" text= full screen, pressing the ESC key application will not exit Full-screen mode "/>
<textblock margin= "5" text= "Application signature: Using tool SignTool.exe"/>
<textblock margin= "5" text= "access to the local file system: see the Accesslocalfile.xaml in this directory"/>
<textblock margin= "5" text= invoke COM interface: see the Comdemo in this directory. XAML "/>
<textblock margin= "5" text= "Custom window: see Customoobwindow Project for this solution"/>
</StackPanel>
</Grid>
</navigation:Page>