語言

XamlValueConverter<TConverterBase> 建構函式

定義

初始化 XamlValueConverter<TConverterBase> 類別的新執行個體。

多載

名稱 Description
XamlValueConverter<TConverterBase>(Type, XamlType)

根據實作XamlValueConverter<TConverterBase>的轉換器及目標/目的類型Type初始化該XamlValueConverter<TConverterBase>類別的新實例。

XamlValueConverter<TConverterBase>(Type, XamlType, String)

根據實作XamlValueConverter<TConverterBase>目標/目的類型Type及字串名稱的轉換器,初始化類別的新XamlValueConverter<TConverterBase>實例。

XamlValueConverter<TConverterBase>(Type, XamlType)

根據實作XamlValueConverter<TConverterBase>的轉換器及目標/目的類型Type初始化該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)

參數

converterType
Type

那 Type 個實現轉換器行為的裝置。

適用於

XamlValueConverter<TConverterBase>(Type, XamlType, String)

根據實作XamlValueConverter<TConverterBase>目標/目的類型Type及字串名稱的轉換器,初始化類別的新XamlValueConverter<TConverterBase>實例。

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)

參數

converterType
Type

那 Type 個實現轉換器行為的裝置。

name
String

弦名。

例外狀況

三個參數皆為 null (至少一個必須非零)。

備註

若 name 提供為 null,則根據 converterType 或 targetType產生預設名稱。

適用於