XamlXmlReader.Namespace Property

Definition

Gets the XAML namespace from the current node.

C#
public override System.Xaml.NamespaceDeclaration Namespace { get; }

Property Value

The XAML namespace from the current node, if it is available; otherwise, null.

Remarks

This property only has a non-null result if the NodeType of the current position is NamespaceDeclaration. This property does not report the XAML namespace that applies to objects or members in a general scoping sense. Your implementation should cache XAML namespace information if you need it for specific operations. For default operations that involve the loaded XAML schema context, the acting XAML namespace is internally cached by XAML writer implementations.

Applies to

Product 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, 10