Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

NavigationWindow.SandboxExternalContent Property

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

Namespace: System.Windows.Navigation
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public bool SandboxExternalContent { get; set; }
/** @property */
public boolean get_SandboxExternalContent ()

/** @property */
public void set_SandboxExternalContent (boolean value)

public function get SandboxExternalContent () : boolean

public function set SandboxExternalContent (value : boolean)

<object SandboxExternalContent="bool" .../>

Property Value

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

Exception typeCondition

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 Windows Presentation Foundation Application 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 will only contain external content 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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.