Idioma

XamlValueConverter<TConverterBase> Construtores

Definição

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

Sobrecargas

Nome Descrição
XamlValueConverter<TConverterBase>(Type, XamlType)

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

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inicializa uma nova instância da XamlValueConverter<TConverterBase> classe, baseada num conversor que implementa Type o tipo de destino/destino do XamlValueConverter<TConverterBase>, e um nome de cadeia.

XamlValueConverter<TConverterBase>(Type, XamlType)

Inicializa uma nova instância da XamlValueConverter<TConverterBase> classe, com base num conversor que implementa Type e no tipo de destino/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.

targetType
XamlType

O alvo/destino XamlType do XamlValueConverter<TConverterBase>.

Aplica-se a

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inicializa uma nova instância da XamlValueConverter<TConverterBase> classe, baseada num conversor que implementa Type o tipo de destino/destino do XamlValueConverter<TConverterBase>, e um nome de cadeia.

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.

targetType
XamlType

O alvo/destino XamlType do XamlValueConverter<TConverterBase>.

name
String

O nome da corda.

Exceções

Os três parâmetros são null (pelo menos um é necessário para não ser nulo).

Observações

Se name for fornecido como null, gera-se um nome por defeito com base em ou converterTypetargetType.

Aplica-se a