Share via


AbsoluteLayout.SetLayoutBounds(BindableObject, Rectangle) Method

Definition

Sets the layout bounds of a view that will be used to size it when it is layed out.

public static void SetLayoutBounds (Xamarin.Forms.BindableObject bindable, Xamarin.Forms.Rectangle bounds);
static member SetLayoutBounds : Xamarin.Forms.BindableObject * Xamarin.Forms.Rectangle -> unit

Parameters

bindable
BindableObject

The view to delimit by bounds.

bounds
Rectangle

A rectangle that represents the desired size and shape of bindable.

Remarks

This method supports the AbsoluteLayout.LayoutBounds XAML attached property. In XAML, Application developers can specify a comma-separated list—possibly with spaces—of four values that specify the bounding rectangle's position and dimensions. The first two values in the list must represent numbers. The latter two values may each either be numbers, or the string "AutoSize". The AbsoluteLayout.LayoutFlags attached property determines how the values in the list are interpreted to create the bounding rectangle. Application developers can call this method to update the layout of a view after it is added.

Applies to