Frame.SandboxExternalContent Property

Gets or sets whether a Frame isolates external Extensible Application Markup Language (XAML) content within a partial trust security sandbox (with the default Internet permission set). This is a dependency property.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public bool SandboxExternalContent { get; set; }
<object SandboxExternalContent="bool" .../>

Property Value

Type: System.Boolean
true if content is isolated within a partial trust security sandbox; otherwise, false. The default is false.

Identifier field

SandboxExternalContent

Metadata properties set to true

None

ExceptionCondition
SecurityException

SandboxExternalContent is set when an application is executing in partial trust.

External content is XAML content that is not included with an application as either a resource file or a content file (see Windows Presentation Foundation Application Resource, Content, and Data Files).

When SandboxExternalContent is true, and the source for the content of the Frame is an external XAML file, the content is loaded into a partial trust security sandbox that is limited to the default Internet permission set. The external content is subsequently loaded into a separate process. As a result, the external content becomes isolated and does not have access to application-scope resources, such as resource dictionaries (see ResourceDictionary).

NoteNote:

Frame will only contain external content when the Source property is set to the uniform resource identifier (URI) for an external XAML file. Frame content that is provided using the Content property is considered internal content and, subsequently, is not isolated.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft