XamlValueConverter<TConverterBase> Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy XamlValueConverter<TConverterBase>.

Przeciążenia

XamlValueConverter<TConverterBase>(Type, XamlType)

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

XamlValueConverter<TConverterBase>(Type, XamlType, String)

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

XamlValueConverter<TConverterBase>(Type, XamlType)

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

Obiekt docelowy/docelowy XamlType obiektu XamlValueConverter<TConverterBase>.

Dotyczy

XamlValueConverter<TConverterBase>(Type, XamlType, String)

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

Obiekt docelowy/docelowy XamlType obiektu XamlValueConverter<TConverterBase>.

name
String

Nazwa ciągu.

Wyjątki

Wszystkie trzy parametry to null (co najmniej jeden musi być inny niż null).

Uwagi

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

Dotyczy