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
| 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
- targetType
- XamlType
O XamlType de destino do XamlValueConverter<TConverterBase>.
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
- targetType
- XamlType
O XamlType de destino 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 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.