DragCanvasResolveOffset Method

Determines one component of a UIElement's location within a Canvas (either the horizontal or vertical offset).

Definition

Namespace: MbcsCentral
Assembly: MbcsCentral (in MbcsCentral.exe) Version: 2.0.1.15 (2.0.1.15)
C#
private static double ResolveOffset(
	double side1,
	double side2,
	out bool useSide1
)

Parameters

side1  Double
The value of an offset relative to a default side of the Canvas (i.e. top or left).
side2  Double
The value of the offset relative to the other side of the Canvas (i.e. bottom or right).
useSide1  Boolean
Will be set to true if the returned value should be used for the offset from the side represented by the 'side1' parameter. Otherwise, it will be set to false.

Return Value

Double

See Also