XamlValueConverter<TConverterBase> Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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
- 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
- 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.