XamlObjectWriterSettings.ExternalNameScope Property

.NET Framework (current version)

Gets or sets the XAML namescope to use for registering names from the XAML writer if RegisterNamesOnExternalNamescope is true.

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public INameScope ExternalNameScope { get; set; }

Property Value

Type: System.Windows.Markup.INameScope

The XAML namescope to use for registering names. The default is null.

Specific contexts for a XamlObjectWriter might use an external XAML namescope.

In the WPF XAML implementation, XAML writer operations that are initiated by FrameworkTemplate specify a separate XAML namescope. In this WPF scenario, templates should not share a XAML namescope with the root of the XAML page that defines them. Instead, they should process into a separate, designated XAML namescope.

.NET Framework
Available since 4.0
Return to top