Udostępnij za pośrednictwem


IXamlType2 Interface

Definition

Provides the means to report XAML-type system specifics about XAML types. Using this interface contract, XAML parsers can load any custom types and members thereof that are defined in your app and are referenced in XAML files.

public interface class IXamlType2 : IXamlType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.Guid(2668391995, 17211, 22189, 143, 105, 120, 164, 221, 62, 100, 249)]
struct IXamlType2 : IXamlType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.Guid(2668391995, 17211, 22189, 143, 105, 120, 164, 221, 62, 100, 249)]
public interface IXamlType2 : IXamlType
Public Interface IXamlType2
Implements IXamlType
Attributes
Implements

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Properties

BaseType

Gets the IXamlType for the immediate base type of the XAML type. Determination of this value is based on the underlying type for core types.

(Inherited from IXamlType)
BoxedType

Gets the IXamlType for the boxed type of the XAML type. Determination of this value is based on the underlying type for core types.

ContentProperty

Gets the IXamlMember information for the XAML content property of this IXamlType.

(Inherited from IXamlType)
FullName

Gets the full class name of the underlying type.

(Inherited from IXamlType)
IsArray

Gets a value that indicates whether the IXamlType represents an array.

(Inherited from IXamlType)
IsBindable

Gets a value that declares whether the type is bindable.

(Inherited from IXamlType)
IsCollection

Gets a value that indicates whether this IXamlType represents a collection.

(Inherited from IXamlType)
IsConstructible

Gets a value that indicates whether this IXamlType represents a constructible type, as per the XAML definition.

(Inherited from IXamlType)
IsDictionary

Gets a value that indicates whether this IXamlType represents a dictionary/map.

(Inherited from IXamlType)
IsMarkupExtension

Gets a value that indicates whether the IXamlType represents a markup extension.

(Inherited from IXamlType)
ItemType

Gets a value that provides the type information for the Items property of this IXamlType.

(Inherited from IXamlType)
KeyType

Gets a value that provides the type information for the Key property of this IXamlType, if this IXamlType represents a dictionary/map.

(Inherited from IXamlType)
UnderlyingType

Gets information for the backing type.

(Inherited from IXamlType)

Methods

ActivateInstance()

Given a XAML type, sets its values for initialization and returns a usable instance.

(Inherited from IXamlType)
AddToMap(Object, Object, Object)

Adds an item to a custom map type.

(Inherited from IXamlType)
AddToVector(Object, Object)

Adds an item to a custom vector type.

(Inherited from IXamlType)
CreateFromString(String)

Creates a type system representation based on a string. The main scenario for this usage is creating an enumeration value and mapping the appropriate enumeration.

(Inherited from IXamlType)
GetMember(String)

Returns the IXamlMember information for a specific named member from this IXamlType.

(Inherited from IXamlType)
RunInitializer()

Invokes any necessary pre-activation logic as required by the XAML schema context and its platform dependencies.

(Inherited from IXamlType)

Applies to

See also