XamlXmlReader.Namespace Property

.NET Framework 4.6 and 4.5

Gets the XAML namespace from the current node.

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

public override NamespaceDeclaration Namespace { get; }

Property Value

Type: System.Xaml.NamespaceDeclaration

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

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.

.NET Framework
Available since 4.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft