Język

XamlValueConverter<TConverterBase> Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy XamlValueConverter<TConverterBase>.

Przeciążenia

Nazwa Opis
XamlValueConverter<TConverterBase>(Type, XamlType)

Inicjuje nowe wystąpienie XamlValueConverter<TConverterBase> klasy na podstawie implementowania Type konwertera i typu docelowego klasy XamlValueConverter<TConverterBase>.

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inicjuje nowe wystąpienie XamlValueConverter<TConverterBase> klasy na podstawie konwertera implementowania Type docelowego/docelowego typu XamlValueConverter<TConverterBase>, i nazwy ciągu.

XamlValueConverter<TConverterBase>(Type, XamlType)

Inicjuje nowe wystąpienie XamlValueConverter<TConverterBase> klasy na podstawie implementowania Type konwertera i typu docelowego klasy 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)

Parametry

converterType
Type

Element Type implementujący zachowanie konwertera.

targetType
XamlType

Docelowy/docelowy XamlType obiektu XamlValueConverter<TConverterBase>.

Dotyczy

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Inicjuje nowe wystąpienie XamlValueConverter<TConverterBase> klasy na podstawie konwertera implementowania Type docelowego/docelowego typu XamlValueConverter<TConverterBase>, i nazwy ciągu.

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)

Parametry

converterType
Type

Element Type implementujący zachowanie konwertera.

targetType
XamlType

Docelowy/docelowy XamlType obiektu XamlValueConverter<TConverterBase>.

name
String

Nazwa ciągu.

Wyjątki

Wszystkie trzy parametry to null (co najmniej jeden musi mieć wartość inną niż null).

Uwagi

Jeśli name zostanie podana jako null, zostanie wygenerowana nazwa domyślna na podstawie wartości converterType lub targetType.

Dotyczy