LayoutHelper.

ApplyLayoutConstraints(ILayoutable, Size) Method

Summary

Calculates a control's size based on its Width, Height, MinWidth, MaxWidth, MinHeight and MaxHeight.
Namespace
Avalonia.Layout
Containing Type
LayoutHelper

Syntax

public static Size ApplyLayoutConstraints(ILayoutable control, Size constraints)

Parameters

Name Type Description
control ILayoutable The control.
constraints Size The space available for the control.

Return Value

Type Description
Size The control's size.