Converts a value of the type Double into the type GridLength.

Namespace: Elysium.Converters
Assembly: Elysium (in Elysium.dll) Version: 2.0.1042.4 (2.0.1042.4)

Syntax

C#
public Object Convert(
	Object value,
	Type targetType,
	Object parameter,
	CultureInfo culture
)
Visual Basic
Public Function Convert ( 
	value As Object,
	targetType As Type,
	parameter As Object,
	culture As CultureInfo
) As Object

Parameters

value
Type: System..::..Object
Initial value of the type Thickness.
targetType
Type: System..::..Type
A target type. The value is ignored.
parameter
Type: System..::..Object
Converter's parameter. Has to be a string and can be one of the next values: "Auto", "*" or null.
culture
Type: System.Globalization..::..CultureInfo
Language and local parameters used in converter. The value is ignored.

Return Value

Type: Object
A value of the type GridLength. The results depends on the value of the following paremeter parameter:
  • "Auto": GridLength.Auto. A value of the parameter value is ignored.
  • "*": A value is represented as a calculated part of the available space. A value of the part weight has to be set in the parameter value.
  • null: A value, measured in pixels, is returned A quantity of pixels has to be set in the parameter value.

Implements

IValueConverter..::..Convert(Object, Type, Object, CultureInfo)

See Also