XamlMember.PreferredXamlNamespace Property

.NET Framework (current version)

Gets the single XAML namespace URI that identifies the primary XAML namespace for this XamlMember.

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

public string PreferredXamlNamespace { get; }

Property Value

Type: System.String

The identifier for the primary XAML namespace for this XamlMember, as a string.

The PreferredXamlNamespace property provides the same value as calling GetXamlNamespaces and then getting the first value string from the returned list. The preferred XAML namespace should be used when writing the member back to text or other representations that preserve XAML namespace information.

.NET Framework
Available since 4.0
Return to top