ערוך

שתף באמצעות


XamlValueConverter<TConverterBase> Constructors

Definition

Initializes a new instance of the XamlValueConverter<TConverterBase> class.

Overloads

XamlValueConverter<TConverterBase>(Type, XamlType)

Initializes a new instance of the XamlValueConverter<TConverterBase> class, based on a converter implementing Type and the target/destination type of the XamlValueConverter<TConverterBase>.

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Initializes a new instance of the XamlValueConverter<TConverterBase> class, based on a converter implementing Type the target/destination type of the XamlValueConverter<TConverterBase>, and a string name.

XamlValueConverter<TConverterBase>(Type, XamlType)

Initializes a new instance of the XamlValueConverter<TConverterBase> class, based on a converter implementing Type and the target/destination type of the 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)

Parameters

converterType
Type

The Type that implements the converter behavior.

targetType
XamlType

The target/destination XamlType of the XamlValueConverter<TConverterBase>.

Applies to

XamlValueConverter<TConverterBase>(Type, XamlType, String)

Initializes a new instance of the XamlValueConverter<TConverterBase> class, based on a converter implementing Type the target/destination type of the XamlValueConverter<TConverterBase>, and a string name.

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)

Parameters

converterType
Type

The Type that implements the converter behavior.

targetType
XamlType

The target/destination XamlType of the XamlValueConverter<TConverterBase>.

name
String

The string name.

Exceptions

All three parameters are null (at least one is required to be non-null).

Remarks

If name is provided as null, a default name is generated based on either converterType or targetType.

Applies to