SizeToContent Enumeration

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

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
C#
[FlagsAttribute]
public enum SizeToContent

Members

Manual0 The window will not automatically size itself to fit its content.
Width1 The window will size itself horizontally to fit its content.
Height2 The window will size itself vertically to fit its content.
WidthAndHeight3 The window will size itself horizontally and vertically to fit its content.

See Also