FixedPage.SetRight(UIElement, Double) Method

Definition

Sets the distance between the right side of an element and the right side of its parent Canvas.

public:
 static void SetRight(System::Windows::UIElement ^ element, double length);
public static void SetRight (System.Windows.UIElement element, double length);
static member SetRight : System.Windows.UIElement * double -> unit
Public Shared Sub SetRight (element As UIElement, length As Double)

Parameters

element
UIElement

The element on which to set the right offset.

length
Double

The new distance between the right side of the element and the right side of its parent canvas.

Remarks

The child element's right offset does not affect the size of the parent canvas.

If both a left and a right offset have been specified on the same element, the left offset takes precedence.

When setting the right offset as a percentage, the percentage value is based on the width of the parent canvas.

Applies to

See also