XamlType.GetXamlNamespaces Method

Definition

Returns a list of string identifiers for XAML namespaces that the type is included in.

C#
public virtual System.Collections.Generic.IList<string> GetXamlNamespaces();

Returns

A list of string values, where each string is the URI identifier for a XAML namespace.

Remarks

Typical XAML namespace identifiers are strings in URI form.

The default implementation checks the following, in order: the XAML namespace that is supplied in construction (XamlType(String, String, IList<XamlType>, XamlSchemaContext) signature only); and the namespaces that are available from the schema context. If these are each null, a new list is generated that contains a single empty string. You can override this method to change the lookup methodology.

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