Lingua

XamlValueConverter<TConverterBase> Costruttori

Definizione

Inizializza una nuova istanza della classe XamlValueConverter<TConverterBase>.

Overload

Nome Descrizione
XamlValueConverter<TConverterBase>(Type, XamlType)

Inizializza una nuova istanza della XamlValueConverter<TConverterBase> classe in base a un convertitore che implementa Type e al tipo di destinazione/destinazione dell'oggetto XamlValueConverter<TConverterBase>.

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inizializza una nuova istanza della XamlValueConverter<TConverterBase> classe, in base a un convertitore che implementa Type il tipo di destinazione/destinazione dell'oggetto XamlValueConverter<TConverterBase>e un nome stringa.

XamlValueConverter<TConverterBase>(Type, XamlType)

Inizializza una nuova istanza della XamlValueConverter<TConverterBase> classe in base a un convertitore che implementa Type e al tipo di destinazione/destinazione dell'oggetto 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)

Parametri

converterType
Type

Oggetto Type che implementa il comportamento del convertitore.

targetType
XamlType

Destinazione/destinazione XamlType dell'oggetto XamlValueConverter<TConverterBase>.

Si applica a

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inizializza una nuova istanza della XamlValueConverter<TConverterBase> classe, in base a un convertitore che implementa Type il tipo di destinazione/destinazione dell'oggetto XamlValueConverter<TConverterBase>e un nome stringa.

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)

Parametri

converterType
Type

Oggetto Type che implementa il comportamento del convertitore.

targetType
XamlType

Destinazione/destinazione XamlType dell'oggetto XamlValueConverter<TConverterBase>.

name
String

Nome stringa.

Eccezioni

Tutti e tre i parametri sono null (almeno uno deve essere diverso da null).

Commenti

Se name viene specificato come null, viene generato un nome predefinito basato su converterType o targetType.

Si applica a