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)
- C#
- VB
- F#
public static Size ApplyLayoutConstraints(
Layoutable control,
Size constraints
)
Public Shared Function ApplyLayoutConstraints (
control As Layoutable,
constraints As Size
) As Size
static member ApplyLayoutConstraints :
control : Layoutable *
constraints : Size -> Size
Parameters
- Layoutable
- The control.
- Size
- The space available for the control.
Return Value
Size
The control's size.