Edit

Share via


XamlTypeName Class

Definition

Provides a means to specify a XAML type in terms of name and namespace.

public ref class XamlTypeName
public class XamlTypeName
type XamlTypeName = class
Public Class XamlTypeName
Inheritance
XamlTypeName

Remarks

XamlType is the type information class in the XAML type system, whereas XamlTypeName is more of a data structure that provides different ways of specifying that type. XamlTypeName also provides static helper methods for generating a XamlTypeName by resolving an existing type identifier in a XAML namespace.

Constructors

XamlTypeName()

Initializes a new instance of the XamlTypeName class.

XamlTypeName(String, String, IEnumerable<XamlTypeName>)

Initializes a new instance of the XamlTypeName class, based on name and namespace strings as well as an array of type arguments.

XamlTypeName(String, String)

Initializes a new instance of the XamlTypeName class, based on name and namespace strings.

XamlTypeName(XamlType)

Initializes a new instance of the XamlTypeName class, based on an existing XamlType.

Properties

Name

Gets the name used to construct this XamlTypeName.

Namespace

Gets the XAML namespace identifier used to construct this XamlTypeName.

TypeArguments

Gets the type arguments used to construct this XamlTypeName.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Parse(String, IXamlNamespaceResolver)

Provides a XamlTypeName value based on a type name and an object that can resolve a markup prefix into a namespace.

ParseList(String, IXamlNamespaceResolver)

Provides a XamlTypeName value based on a string that can specify multiple type names, and an object that can resolve a markup prefix into a namespace.

ToString()

Converts the value of this XamlTypeName to its equivalent string representation.

ToString(IList<XamlTypeName>, INamespacePrefixLookup)

Converts the value of this XamlTypeName to its equivalent string representation, which can be used in markup syntax for an object element usage of multiple types.

ToString(INamespacePrefixLookup)

Converts the value of this XamlTypeName to its equivalent string representation, which can be used in markup syntax for an object element usage of a type.

TryParse(String, IXamlNamespaceResolver, XamlTypeName)

Provides a XamlTypeName value based on a type name and an object that can resolve a markup prefix into a namespace.

TryParseList(String, IXamlNamespaceResolver, IList<XamlTypeName>)

Provides a XamlTypeName value based on a string that can specify multiple type names, and an object that can resolve a markup prefix into a namespace.

Applies to