Share via


IFlexLayout Interface

Definition

A Flexbox-like layout that lays out child elements in optionally wrappable rows or columns of child elements.

public interface class IFlexLayout : Microsoft::Maui::ILayout, System::Collections::Generic::ICollection<Microsoft::Maui::IView ^>, System::Collections::Generic::IEnumerable<Microsoft::Maui::IView ^>, System::Collections::Generic::IList<Microsoft::Maui::IView ^>
public interface IFlexLayout : Microsoft.Maui.ILayout, System.Collections.Generic.ICollection<Microsoft.Maui.IView>, System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>, System.Collections.Generic.IList<Microsoft.Maui.IView>
type IFlexLayout = interface
    interface ILayout
    interface IView
    interface IElement
    interface ITransform
    interface IContainer
    interface IList<IView>
    interface ICollection<IView>
    interface seq<IView>
    interface IEnumerable
    interface ISafeAreaView
    interface IPadding
    interface ICrossPlatformLayout
Public Interface IFlexLayout
Implements ICollection(Of IView), IEnumerable(Of IView), ILayout, IList(Of IView)
Derived
Implements

Properties

AlignContent

Gets a value that controls how multiple rows or columns of child elements are aligned.

AlignItems

Gets a value that controls how child elements are laid out within their row or column.

AnchorX

Gets the X component of the center point for any transform, relative to the bounds of the element.

(Inherited from ITransform)
AnchorY

Gets the Y component of the center point for any transform, relative to the bounds of the element.

(Inherited from ITransform)
AutomationId

Id used by automation tools to interact with this View

(Inherited from IView)
Background

Gets the paint which will fill the background of a View.

(Inherited from IView)
Clip

Gets the Path used to define the outline of the contents of a View.

(Inherited from IView)
ClipsToBounds

Specifies whether the ILayout clips its content to its boundaries.

(Inherited from ILayout)
DesiredSize

Gets the current desired Size of this View.

(Inherited from IView)
Direction

Gets the flex direction for child elements within this layout.

FlowDirection

Direction in which the UI elements are scanned by the eye

(Inherited from IView)
Frame

Gets the bounds of the View within its container.

(Inherited from IView)
Handler

Gets or sets the View Handler of the View.

(Inherited from IView)
Height

Gets the specified height of the IView.

(Inherited from IView)
HorizontalLayoutAlignment

Determines the horizontal aspect of this element's arrangement in a container

(Inherited from IView)
IgnoreSafeArea

Specifies how the View's content should be positioned in relation to obstructions. If this value is false, the content will be positioned only in the unobstructed portion of the screen. If this value is true, the content may be positioned anywhere on the screen. This includes the portion of the screen behind toolbars, screen cutouts, etc.

(Inherited from ISafeAreaView)
InputTransparent

Gets a value indicating whether this element should be involved in the user interaction cycle.

(Inherited from IView)
IsEnabled

Gets a value indicating whether this View is enabled in the user interface.

(Inherited from IView)
IsFocused

Gets a value indicating whether this View is focused currently.

(Inherited from IView)
JustifyContent

Gets a value that that describes how child elements are justified when there is extra space around them.

Margin

The Margin represents the distance between an view and its adjacent views.

(Inherited from IView)
MaximumHeight

Gets the specified maximum height constraint of the IView, between zero and double.PositiveInfinity.

(Inherited from IView)
MaximumWidth

Gets the specified maximum width constraint of the IView, between zero and double.PositiveInfinity.

(Inherited from IView)
MinimumHeight

Gets the specified minimum height constraint of the IView, between zero and double.PositiveInfinity.

(Inherited from IView)
MinimumWidth

Gets the specified minimum width constraint of the IView, between zero and double.PositiveInfinity.

(Inherited from IView)
Opacity

Gets the opacity value applied to the view when it is rendered.

(Inherited from IView)
Padding

The space between the outer edge of the control and its content.

(Inherited from IPadding)
Parent

Gets the Parent of the Element.

(Inherited from IElement)
Position

Gets a value that controls whether the coordinates of child elements are specified in absolute or relative terms.

Rotation

Gets the rotation (in degrees) about the Z-axis (affine rotation) when the element is rendered.

(Inherited from ITransform)
RotationX

Gets the rotation (in degrees) about the X-axis (perspective rotation) when the element is rendered.

(Inherited from ITransform)
RotationY

Gets the rotation (in degrees) about the Y-axis (perspective rotation) when the element is rendered.

(Inherited from ITransform)
Scale

Gets the scale factor applied to the element.

(Inherited from ITransform)
ScaleX

Gets the scale about the X-axis factor applied to the element.

(Inherited from ITransform)
ScaleY

Gets the scale about the Y-axis factor applied to the element.

(Inherited from ITransform)
Semantics

Adds semantics to every View for accessibility

(Inherited from IView)
Shadow

Paints a shadow around the target View.

(Inherited from IView)
TranslationX

Gets the X translation delta of the element.

(Inherited from ITransform)
TranslationY

Gets the Y translation delta of the element.

(Inherited from ITransform)
VerticalLayoutAlignment

Determines the vertical aspect of this element's arrangement in a container

(Inherited from IView)
Visibility

Gets a value that determines whether this View should be part of the visual tree or not.

(Inherited from IView)
Width

Gets the specified width of the IView.

(Inherited from IView)
Wrap

Gets a value that controls whether and how child elements within this layout wrap.

ZIndex

Determines the drawing order of this IView within an ILayout; higher z-indexes will draw over lower z-indexes.

(Inherited from IView)

Methods

Arrange(Rect)

Positions child elements and determines a size for an Element.

(Inherited from IView)
CrossPlatformArrange(Rect)

This interface method is provided for backward compatibility with previous versions. Implementing classes should implement the ICrossPlatformLayout interface rather than directly implementing this method.

(Inherited from ILayout)
CrossPlatformMeasure(Double, Double)

This interface method is provided for backward compatibility with previous versions. Implementing classes should implement the ICrossPlatformLayout interface rather than directly implementing this method.

(Inherited from ILayout)
Focus()

Attempts to set focus to this View.

(Inherited from IView)
GetAlignSelf(IView)

Returns the value that optionally overrides the item alignment for this child within its row or column in the parent.

GetBasis(IView)

Returns the value that describes this element's relative or absolute basis length.

GetFlexFrame(IView)
GetGrow(IView)

Returns the value that determines the proportional growth that this element will accept to accommodate the layout in the row or column.

GetOrder(IView)

Returns the visual order of the element among its siblings.

GetShrink(IView)

Returns the value that determines the proportional reduction in size that this element will accept to the layout in the row or column.

InvalidateArrange()

Method that is called to invalidate the layout of this View.

(Inherited from IView)
InvalidateMeasure()

Signals that the current measure value of this View is no longer valid and must be recomputed during the next measure pass.

(Inherited from IView)
Layout(Double, Double)
Measure(Double, Double)

Updates the size of an View.

(Inherited from IView)
Unfocus()

Unsets focus to this View.

(Inherited from IView)

Explicit Interface Implementations

ICrossPlatformLayout.CrossPlatformArrange(Rect) (Inherited from ILayout)
ICrossPlatformLayout.CrossPlatformMeasure(Double, Double) (Inherited from ILayout)

Extension Methods

CheckHandlers(IView)
ComputeDesiredSize(IView, Double, Double)
ComputeFrame(IView, Rect)
ToHandler(IElement, IMauiContext)
ToPlatform(IElement, IMauiContext)
ToHandler(IView, IMauiContext)
SetSemanticFocus(IView)
CaptureAsync(IView)
DisconnectHandlers(IView)

Applies to