Skip to main content

SizeToContent Enum

Definition

Assembly:Avalonia.Controls
Package:Avalonia

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

public enum SizeToContent

Inheritance: Enum -> SizeToContent

Fields

NameDescription
HeightThe window will size itself vertically to fit its content.
ManualThe window will not automatically size itself to fit its content.
WidthThe window will size itself horizontally to fit its content.
WidthAndHeightThe window will size itself horizontally and vertically to fit its content.

Height Field

The window will size itself vertically to fit its content.

public Avalonia.Controls.SizeToContent Height

Manual Field

The window will not automatically size itself to fit its content.

public Avalonia.Controls.SizeToContent Manual

Width Field

The window will size itself horizontally to fit its content.

public Avalonia.Controls.SizeToContent Width

WidthAndHeight Field

The window will size itself horizontally and vertically to fit its content.

public Avalonia.Controls.SizeToContent WidthAndHeight