XamlValueConverter<TConverterBase> 构造函数   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 XamlValueConverter<TConverterBase> 类的新实例。
重载
| 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)参数
- targetType
- XamlType
适用于
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)参数
- targetType
- XamlType
- name
- String
字符串名称。
例外
所有三个参数都为 null(至少需要有一个为非 null)。
注解
如果name按原null样提供,则基于或基于默认converterType``targetType名称生成一个默认名称。