namespace Avalonia.Layout; /// /// Provides access to layout information of a control. /// public static class LayoutInformation { /// /// Gets the available size constraint passed in the previous layout pass. /// /// The control. /// Previous control measure constraint, if any. public static Size? GetPreviousMeasureConstraint(Layoutable control) { return control.PreviousMeasure; } /// /// Gets the control bounds used in the previous layout arrange pass. /// /// The control. /// Previous control arrange bounds, if any. public static Rect? GetPreviousArrangeBounds(Layoutable control) { return control.PreviousArrange; } }