WindowResizeReason Enum
Definition
Describes the reason for a Avalonia.Controls.WindowBase.Resized event.
public enum WindowResizeReason
Fields
| Name | Description |
|---|---|
| Application | The resize was initiated by the application, for example by setting one of the sizing- related properties on Avalonia.Controls.Window such as Avalonia.Layout.Layoutable.Width or Avalonia.Layout.Layoutable.Height. |
| DpiChange | The resize was due to a change in DPI. |
| Layout | The resize was initiated by the layout system. |
| Unspecified | The resize reason is unknown or unspecified. |
| User | The resize was due to the user resizing the window, for example by dragging the window frame. |
Application Field
The resize was initiated by the application, for example by setting one of the sizing- related properties on Avalonia.Controls.Window such as Avalonia.Layout.Layoutable.Width or Avalonia.Layout.Layoutable.Height.
public Avalonia.Controls.WindowResizeReason Application
DpiChange Field
The resize was due to a change in DPI.
public Avalonia.Controls.WindowResizeReason DpiChange
Layout Field
The resize was initiated by the layout system.
public Avalonia.Controls.WindowResizeReason Layout
Unspecified Field
The resize reason is unknown or unspecified.
public Avalonia.Controls.WindowResizeReason Unspecified
User Field
The resize was due to the user resizing the window, for example by dragging the window frame.
public Avalonia.Controls.WindowResizeReason User