Compartir vía


XamlValueConverter<TConverterBase> Constructores

Definición

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

Sobrecargas

XamlValueConverter<TConverterBase>(Type, XamlType)

Inicializa una nueva instancia de la clase XamlValueConverter<TConverterBase>, basándose en un convertidor que implementa Type y el destino/tipo de destino del objeto XamlValueConverter<TConverterBase>.

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inicializa una nueva instancia de la clase XamlValueConverter<TConverterBase>, basándose en un convertidor que implementa Type, el destino/tipo de destino del objeto XamlValueConverter<TConverterBase> y un nombre de cadena.

XamlValueConverter<TConverterBase>(Type, XamlType)

Inicializa una nueva instancia de la clase XamlValueConverter<TConverterBase>, basándose en un convertidor que implementa Type y el destino/tipo de destino del objeto 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

Objeto XamlType de destino del objeto XamlValueConverter<TConverterBase>.

Se aplica a

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inicializa una nueva instancia de la clase XamlValueConverter<TConverterBase>, basándose en un convertidor que implementa Type, el destino/tipo de destino del objeto XamlValueConverter<TConverterBase> y un nombre de 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

Objeto XamlType de destino del objeto XamlValueConverter<TConverterBase>.

name
String

Nombre de la cadena.

Excepciones

Los tres parámetros son null (por lo menos se exige que uno sea no nulo).

Comentarios

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

Se aplica a