Skip to main content

ApplyLayoutConstraints Method

Calculates a control's size based on its Width, Height, MinWidth, MaxWidth, MinHeight and MaxHeight.

Definition​

Namespace: Avalonia.Layout
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static Size ApplyLayoutConstraints(
Layoutable control,
Size constraints
)

Parameters​

  Layoutable
The control.
  Size
The space available for the control.

Return Value​

Size
The control's size.

See Also​

Reference​

LayoutHelper Class
Avalonia.Layout Namespace