Skip to main content

LayoutInformation Class

Definition​

Namespace:Avalonia.Layout
Assembly:Avalonia.Base
Package:Avalonia

Provides access to layout information of a control.

public class LayoutInformation

Inheritance: object -> LayoutInformation

Methods​

NameDescription
GetPreviousArrangeBoundsGets the control bounds used in the previous layout arrange pass.
GetPreviousMeasureConstraintGets the available size constraint passed in the previous layout pass.

GetPreviousArrangeBounds Method​

Gets the control bounds used in the previous layout arrange pass.

public Nullable<Avalonia.Rect> GetPreviousArrangeBounds(Avalonia.Layout.Layoutable control)

Parameters​

control Avalonia.Layout.Layoutable

The control.

Returns​

Nullable<Avalonia.Rect>

Previous control arrange bounds, if any.

GetPreviousMeasureConstraint Method​

Gets the available size constraint passed in the previous layout pass.

public Nullable<Avalonia.Size> GetPreviousMeasureConstraint(Avalonia.Layout.Layoutable control)

Parameters​

control Avalonia.Layout.Layoutable

The control.

Returns​

Nullable<Avalonia.Size>

Previous control measure constraint, if any.