SizeToContent Enum

Summary

Determines how a Window will size itself to fit its content.
Namespace
Avalonia.Controls
Interfaces
  • IComparable
  • IFormattable
  • IConvertible
Base Types
  • object
  • ValueType
  • Enum
graph TD Base0["Enum"]-->Type Base1["ValueType"]-->Base0 Base2["object"]-->Base1 Interface0["IComparable"]-.->Type Interface1["IFormattable"]-.->Type Interface2["IConvertible"]-.->Type Type["SizeToContent"] class Type type-node

Syntax

[Flags]
public enum SizeToContent

Attributes

Type Description
FlagsAttribute

Fields

Name Constant Value Summary
Height 2
The window will size itself vertically to fit its content.
static
Manual 0
The window will not automatically size itself to fit its content.
static
Width 1
The window will size itself horizontally to fit its content.
static
WidthAndHeight 3
The window will size itself horizontally and vertically to fit its content.
static