Skip to main content

WindowResizeReason Enum

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Describes the reason for a Avalonia.Controls.WindowBase.Resized event.

public enum WindowResizeReason

Inheritance: Enum -> WindowResizeReason

Fields

NameDescription
ApplicationThe 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.
DpiChangeThe resize was due to a change in DPI.
LayoutThe resize was initiated by the layout system.
UnspecifiedThe resize reason is unknown or unspecified.
UserThe 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