Export (0) Print
Expand All

NavigationWindow.SandboxExternalContent Property

Gets or sets a value that indicates whether a NavigationWindow isolates external Extensible Application Markup Language (XAML) content within a partial trust security sandbox (with default Internet zone permission set).  

Namespace:  System.Windows.Navigation
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 (for more information, see WPF Application Resource, Content, and Data Files).

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

NoteNote

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

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft