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

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

Syntax

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

Parameters

value
Type: System..::..Object
Initial value of the type Double.
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: "Left", "Top", "Right", "Bottom" or null. The value corresponds to the side of the border, which is used in calculations.
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 Thickness. All sides of the border, specified in the parameter have a value value; all other sides have a value = 0; In case the parameter parameter = null, all sides of the border have the value = value. If there is a failure during method execution, following value will be returned DependencyProperty.UnsetValue.

Implements

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

See Also