Lenguaje

XamlValueConverter<TConverterBase> Constructores

Definición

Inicializa una nueva instancia de la clase XamlValueConverter<TConverterBase>.

Sobrecargas

Nombre Description
XamlValueConverter<TConverterBase>(Type, XamlType)

Inicializa una nueva instancia de la XamlValueConverter<TConverterBase> clase , basada en un convertidor que implementa Type y el tipo de destino o destino de XamlValueConverter<TConverterBase>.

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inicializa una nueva instancia de la XamlValueConverter<TConverterBase> clase, basada en un convertidor que implementa Type el tipo de destino o destino de y un nombre de XamlValueConverter<TConverterBase>cadena.

XamlValueConverter<TConverterBase>(Type, XamlType)

Inicializa una nueva instancia de la XamlValueConverter<TConverterBase> clase , basada en un convertidor que implementa Type y el tipo de destino o destino de XamlValueConverter<TConverterBase>.

public:
 XamlValueConverter(Type ^ converterType, System::Xaml::XamlType ^ targetType);
public XamlValueConverter(Type converterType, System.Xaml.XamlType targetType);
new System.Xaml.Schema.XamlValueConverter<'ConverterBase (requires 'ConverterBase : null)> : Type * System.Xaml.XamlType -> System.Xaml.Schema.XamlValueConverter<'ConverterBase (requires 'ConverterBase : null)>
Public Sub New (converterType As Type, targetType As XamlType)

Parámetros

converterType
Type

Type que implementa el comportamiento del convertidor.

targetType
XamlType

Destino o destino XamlType de XamlValueConverter<TConverterBase>.

Se aplica a

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inicializa una nueva instancia de la XamlValueConverter<TConverterBase> clase, basada en un convertidor que implementa Type el tipo de destino o destino de y un nombre de XamlValueConverter<TConverterBase>cadena.

public:
 XamlValueConverter(Type ^ converterType, System::Xaml::XamlType ^ targetType, System::String ^ name);
public XamlValueConverter(Type converterType, System.Xaml.XamlType targetType, string name);
new System.Xaml.Schema.XamlValueConverter<'ConverterBase (requires 'ConverterBase : null)> : Type * System.Xaml.XamlType * string -> System.Xaml.Schema.XamlValueConverter<'ConverterBase (requires 'ConverterBase : null)>
Public Sub New (converterType As Type, targetType As XamlType, name As String)

Parámetros

converterType
Type

Type que implementa el comportamiento del convertidor.

targetType
XamlType

Destino o destino XamlType de XamlValueConverter<TConverterBase>.

name
String

Nombre de cadena.

Excepciones

Los tres parámetros son null (se requiere al menos uno para que no sea NULL).

Comentarios

Si name se proporciona como null, se genera un nombre predeterminado basado en converterType o targetType.

Se aplica a