AbsoluteLayout.SetLayoutFlags Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetLayoutFlags(BindableObject, AbsoluteLayoutFlags) |
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. |
SetLayoutFlags(IView, AbsoluteLayoutFlags) |
SetLayoutFlags(BindableObject, AbsoluteLayoutFlags)
- Source:
- AbsoluteLayout.cs
- Source:
- AbsoluteLayout.cs
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.
public:
static void SetLayoutFlags(Microsoft::Maui::Controls::BindableObject ^ bindable, Microsoft::Maui::Layouts::AbsoluteLayoutFlags flags);
public static void SetLayoutFlags (Microsoft.Maui.Controls.BindableObject bindable, Microsoft.Maui.Layouts.AbsoluteLayoutFlags flags);
static member SetLayoutFlags : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Layouts.AbsoluteLayoutFlags -> unit
Public Shared Sub SetLayoutFlags (bindable As BindableObject, flags As AbsoluteLayoutFlags)
Parameters
- bindable
- BindableObject
The view on which to set the layout flags.
- flags
- AbsoluteLayoutFlags
A 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 AbsoluteLayoutFlags enumeration value names for the value of this property on the children of a 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.
Applies to
SetLayoutFlags(IView, AbsoluteLayoutFlags)
- Source:
- AbsoluteLayout.cs
- Source:
- AbsoluteLayout.cs
public:
void SetLayoutFlags(Microsoft::Maui::IView ^ view, Microsoft::Maui::Layouts::AbsoluteLayoutFlags flags);
public void SetLayoutFlags (Microsoft.Maui.IView view, Microsoft.Maui.Layouts.AbsoluteLayoutFlags flags);
member this.SetLayoutFlags : Microsoft.Maui.IView * Microsoft.Maui.Layouts.AbsoluteLayoutFlags -> unit
Public Sub SetLayoutFlags (view As IView, flags As AbsoluteLayoutFlags)
Parameters
- view
- IView
- flags
- AbsoluteLayoutFlags