Export (0) Print
Expand All

XamlSchemaContext.GetValueConverter<TConverterBase> Method

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

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

protected internal XamlValueConverter<TConverterBase> GetValueConverter<TConverterBase>(
	Type converterType,
	XamlType targetType
)
where TConverterBase : class

Type Parameters

TConverterBase

The specific converter base class.

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.

.NET Framework

Supported in: 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft