XamlValueConverter<TConverterBase> Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância da classe XamlValueConverter<TConverterBase>.
Sobrecargas
| Nome | Descrição |
|---|---|
| XamlValueConverter<TConverterBase>(Type, XamlType) |
Inicializa uma nova instância da XamlValueConverter<TConverterBase> classe, com base em uma implementação Type de conversor e no tipo de destino/destino do XamlValueConverter<TConverterBase>. |
| XamlValueConverter<TConverterBase>(Type, XamlType, String) |
Inicializa uma nova instância da XamlValueConverter<TConverterBase> classe, com base em um conversor que implementa Type o tipo de destino/destino do nome da cadeia de XamlValueConverter<TConverterBase>caracteres e um nome de cadeia de caracteres. |
XamlValueConverter<TConverterBase>(Type, XamlType)
Inicializa uma nova instância da XamlValueConverter<TConverterBase> classe, com base em uma implementação Type de conversor 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
- targetType
- XamlType
O destino/destino XamlType do XamlValueConverter<TConverterBase>.
Aplica-se a
XamlValueConverter<TConverterBase>(Type, XamlType, String)
Inicializa uma nova instância da XamlValueConverter<TConverterBase> classe, com base em um conversor que implementa Type o tipo de destino/destino do nome da cadeia de XamlValueConverter<TConverterBase>caracteres 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
- targetType
- XamlType
O destino/destino XamlType do XamlValueConverter<TConverterBase>.
- name
- String
O nome da cadeia de caracteres.
Exceções
Todos os três parâmetros são null (pelo menos um é necessário para não ser nulo).
Comentários
Se name for fornecido como null, um nome padrão será gerado com base em um converterType ou targetType.