Export (0) Print
Expand All

DataGridLengthConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Converts the specified value to a DataGridLength instance.

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

public override Object ConvertFrom(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext
An object that provides a format context.
culture
Type: System.Globalization.CultureInfo
The CultureInfo to use as the current culture.
value
Type: System.Object
The value to convert.

Return Value

Type: System.Object
The converted value.

ExceptionCondition
NotSupportedException

value is null.

DataGridLengthConverter supports conversion from the following types: String, Decimal, Single, Double, Int16, Int32, Int64, UInt16, UInt32, and UInt64.

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:
© 2014 Microsoft