NameScope.NameScope Attached Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets dynamically attached NameScope instances.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

See GetNameScope, SetNameScope

Property Value

Type: System.Windows.Markup.INameScope

The attached name scope on a particular object.

This attached property requires attached property usage in XAML, or use of the GetNameScope and SetNameScope accessors in code. Setting the namescope in XAML is not common. The attached property usage is primarily to facilitate attaching XAML namescopes to objects that do not share inheritance for XAML namescope implementations. DependencyObject and derived classes support this inheritance natively.

Identifier field


Metadata properties set to true


Return to top