XamlType.PreferredXamlNamespace Property

.NET Framework (current version)

Gets the single XAML namespace that is the primary XAML namespace for this XamlType.

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

public string PreferredXamlNamespace { get; }

Property Value

Type: System.String

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

This implementation provides the same value as calling GetXamlNamespaces and then getting the first value string from the returned enumerable set.

.NET Framework
Available since 4.0
Return to top