DataGridLengthConverter.CanConvertTo Method (ITypeDescriptorContext, Type)

Determines whether conversion is possible to the specified type from a DataGridLength.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

public override bool CanConvertTo(
	ITypeDescriptorContext context,
	Type destinationType
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext
An object that provides a format context.
destinationType
Type: System.Type
The type to convert to.

Return Value

Type: System.Boolean
true if destinationType is a String type; otherwise, false.

DataGridLengthConverter supports conversion to the String type.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: