XamlReader.Namespace Property

Definition

When implemented in a derived class, gets the XAML namespace information from the current node.

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

Property Value

The XAML namespace information, if it is available; otherwise, null.

Remarks

The intended design of this API is to return a non-null result only if the NodeType of the current node is NamespaceDeclaration. The property does not report the XAML namespace that applies to objects or members in a general scoping sense, as interpreted under a XAML schema context. Your application must provide a means to cache information for the acting XAML namespace as it traverses XAML nodes, if you need that information in a manner other than how the XAML schema context reports it to a writer. See Namespace for notes on the reference implementation.

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

See also