XamlSchemaContext::GetValueConverter<TConverterBase> Method (Type^, XamlType^)

.NET Framework (current version)
 

Returns a value converter that can convert to the requested targetType.

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public protected:
generic<typename TConverterBase>
where TConverterBase : ref class
XamlValueConverter<TConverterBase>^ GetValueConverter(
	Type^ converterType,
	XamlType^ targetType
)

Parameters

converterType
Type: System::Type^

The converter implementation.

targetType
Type: System.Xaml::XamlType^

The desired destination type for the converter.

Return Value

Type: System.Xaml.Schema::XamlValueConverter<TConverterBase>^

A XamlValueConverter<TConverterBase> with a constraint that matches the constraint that is put on the method call.

Type Parameters

TConverterBase

The specific converter base class.

.NET Framework
Available since 4.0
Return to top
Show: