XamlObjectWriterSettings.ExternalNameScope Property

Definition

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

public System.Windows.Markup.INameScope ExternalNameScope { get; set; }

Property Value

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

Remarks

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

WPF Usage Notes

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.

Applies to

Produit Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9