Slow and steady Silverlight (45)

Source: Internet
Author: User
Tags xmlns silverlight

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.