Skip to main content

SizeToContent Enumeration

Determines how a Window will size itself to fit its content.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

[FlagsAttribute]
public enum SizeToContent

Members

Manual0The window will not automatically size itself to fit its content.
Width1The window will size itself horizontally to fit its content.
Height2The window will size itself vertically to fit its content.
WidthAndHeight3The window will size itself horizontally and vertically to fit its content.

See Also

Reference

Avalonia.Controls Namespace