Share via


TypeExtension Class

Definition

Provides a XAML markup extension that returns a Type object for a specified type name.

public ref class TypeExtension : Microsoft::Maui::Controls::Xaml::IMarkupExtension<Type ^>
[Microsoft.Maui.Controls.ContentProperty("TypeName")]
[Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IXamlTypeResolver), typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider) })]
public class TypeExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension<Type>
[Microsoft.Maui.Controls.ContentProperty("TypeName")]
public class TypeExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension<Type>
[<Microsoft.Maui.Controls.ContentProperty("TypeName")>]
[<Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IXamlTypeResolver), typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider) })>]
type TypeExtension = class
    interface IMarkupExtension<Type>
    interface IMarkupExtension
[<Microsoft.Maui.Controls.ContentProperty("TypeName")>]
type TypeExtension = class
    interface IMarkupExtension<Type>
    interface IMarkupExtension
Public Class TypeExtension
Implements IMarkupExtension(Of Type)
Inheritance
TypeExtension
Attributes
Implements

Constructors

Name Description
TypeExtension()

Properties

Name Description
TypeName

Gets or sets the type name to resolve.

Methods

Name Description
ProvideValue(IServiceProvider)

Explicit Interface Implementations

Name Description
IMarkupExtension.ProvideValue(IServiceProvider)

Applies to