Xamarin.Forms.AbsoluteLayout.SetLayoutFlags Method
Sets the layout flags of a view that will be used to interpret the layout bounds set on it when it is added to the layout.

Syntax

public static void SetLayoutFlags (BindableObject bindable, AbsoluteLayoutFlags flags)

Parameters

bindable
The view on which to set the layout flags.
flags
A Xamarin.Forms.AbsoluteLayoutFlags that describes the how to interpret the layout bounds for bindable.

Remarks

This method supports the AbsoluteLayout.LayoutFlags XAML attached property. In XAML, Application developers can specify the following Xamarin.Forms.AbsoluteLayoutFlags enumeration value names for the value of this property on the children of a Xamarin.Forms.AbsoluteLayout:

  • All
  • None
  • HeightProportional
  • WidthProportional
  • SizeProportional
  • XProportional
  • YProportional
  • PositionProportional

Application developers can combine any of the above values by supplying a comma-separated list. Application developers can call this method to update the layout flags of a view after it is added.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0