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 BT
Type-->Base0["Enum"]
Base0-->Base1["ValueType"]
Base1-->Base2["object"]
Type-.->Interface0["IComparable"]
Type-.->Interface1["IFormattable"]
Type-.->Interface2["IConvertible"]
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
|
Extension Methods
Name | Value | Summary |
---|---|---|
HasAllFlags |
bool |
From EnumExtensions
|
HasAnyFlag |
bool |
From EnumExtensions
|
HasFlagCustom |
bool |
From EnumExtensions
|