XamlValueConverter<TConverterBase> Construtores

Definição

Inicializa uma nova instância da classe XamlValueConverter<TConverterBase>.

Sobrecargas

XamlValueConverter<TConverterBase>(Type, XamlType)

Inicializa uma nova instância da classe XamlValueConverter<TConverterBase>, com base em um conversor que implementa Type e o tipo de destino do XamlValueConverter<TConverterBase>.

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inicializa uma nova instância da classe XamlValueConverter<TConverterBase>, com base em um conversor que implementa Type, o tipo de destino do XamlValueConverter<TConverterBase> e um nome de cadeia de caracteres.

XamlValueConverter<TConverterBase>(Type, XamlType)

Inicializa uma nova instância da classe XamlValueConverter<TConverterBase>, com base em um conversor que implementa Type e o tipo de destino do 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

O Type que implementa o comportamento do conversor.

Aplica-se a

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inicializa uma nova instância da classe XamlValueConverter<TConverterBase>, com base em um conversor que implementa Type, o tipo de destino do XamlValueConverter<TConverterBase> e um nome de cadeia de caracteres.

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

O Type que implementa o comportamento do conversor.

name
String

O nome da cadeia de caracteres.

Exceções

Todos os três parâmetros são null (pelo menos um deve ser não nulo).

Comentários

Se name for fornecido como null, um nome padrão será gerado com base em um converterType ou targetTypeoutro.

Aplica-se a