NavigationWindow.SandboxExternalContent Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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).
public:
property bool SandboxExternalContent { bool get(); void set(bool value); };
public bool SandboxExternalContent { get; set; }
member this.SandboxExternalContent : bool with get, set
Public Property SandboxExternalContent As Boolean
Property Value
true
if content is isolated within a partial trust security sandbox; otherwise, false
. The default is false
.
Exceptions
SandboxExternalContent is set when an application is executing in partial trust.
Remarks
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).
Note
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.
Dependency Property Information
Identifier field | SandboxExternalContent |
Metadata properties set to true |
None |
Applies to
.NET