Skip to main content

WindowDecorationsElementRole Enum

Definition

Namespace:Avalonia.Input
Assembly:Avalonia.Base
Package:Avalonia

Defines the cross-platform role of a visual element for non-client hit-testing. Used to mark elements as titlebar drag areas, resize grips, etc.

public enum WindowDecorationsElementRole

Inheritance: Enum -> WindowDecorationsElementRole

Fields

NameDescription
CloseButtonThe element acts as the window close button. On Win32, maps to HTCLOSE for system close behavior. On other platforms, treated as an interactive decoration element.
DecorationsElementAn interactive element that is part of the decorations chrome (e.g., a caption button). Set by themes on decoration template elements. Input is passed through to the element rather than being intercepted for non-client actions.
FullScreenButtonThe element acts as the window fullscreen toggle button. Treated as an interactive decoration element on all platforms.
MaximizeButtonThe element acts as the window maximize/restore button. On Win32, maps to HTMAXBUTTON for system maximize behavior. On other platforms, treated as an interactive decoration element.
MinimizeButtonThe element acts as the window minimize button. On Win32, maps to HTMINBUTTON for system minimize behavior. On other platforms, treated as an interactive decoration element.
NoneNo special role. The element is invisible to chrome hit-testing.
ResizeEResize grip for the east (right) edge.
ResizeNResize grip for the north (top) edge.
ResizeNEResize grip for the northeast corner.
ResizeNWResize grip for the northwest corner.
ResizeSResize grip for the south (bottom) edge.
ResizeSEResize grip for the southeast corner.
ResizeSWResize grip for the southwest corner.
ResizeWResize grip for the west (left) edge.
TitleBarThe element acts as a titlebar drag area. Clicking and dragging on this element initiates a platform window move.
UserAn interactive element set by user code that should receive input even when overlapping chrome areas. Has the same effect as Avalonia.Input.WindowDecorationsElementRole.DecorationsElement but is intended for use by application developers.

CloseButton Field

The element acts as the window close button. On Win32, maps to HTCLOSE for system close behavior. On other platforms, treated as an interactive decoration element.

public Avalonia.Input.WindowDecorationsElementRole CloseButton

DecorationsElement Field

An interactive element that is part of the decorations chrome (e.g., a caption button). Set by themes on decoration template elements. Input is passed through to the element rather than being intercepted for non-client actions.

public Avalonia.Input.WindowDecorationsElementRole DecorationsElement

FullScreenButton Field

The element acts as the window fullscreen toggle button. Treated as an interactive decoration element on all platforms.

public Avalonia.Input.WindowDecorationsElementRole FullScreenButton

MaximizeButton Field

The element acts as the window maximize/restore button. On Win32, maps to HTMAXBUTTON for system maximize behavior. On other platforms, treated as an interactive decoration element.

public Avalonia.Input.WindowDecorationsElementRole MaximizeButton

MinimizeButton Field

The element acts as the window minimize button. On Win32, maps to HTMINBUTTON for system minimize behavior. On other platforms, treated as an interactive decoration element.

public Avalonia.Input.WindowDecorationsElementRole MinimizeButton

None Field

No special role. The element is invisible to chrome hit-testing.

public Avalonia.Input.WindowDecorationsElementRole None

ResizeE Field

Resize grip for the east (right) edge.

public Avalonia.Input.WindowDecorationsElementRole ResizeE

ResizeN Field

Resize grip for the north (top) edge.

public Avalonia.Input.WindowDecorationsElementRole ResizeN

ResizeNE Field

Resize grip for the northeast corner.

public Avalonia.Input.WindowDecorationsElementRole ResizeNE

ResizeNW Field

Resize grip for the northwest corner.

public Avalonia.Input.WindowDecorationsElementRole ResizeNW

ResizeS Field

Resize grip for the south (bottom) edge.

public Avalonia.Input.WindowDecorationsElementRole ResizeS

ResizeSE Field

Resize grip for the southeast corner.

public Avalonia.Input.WindowDecorationsElementRole ResizeSE

ResizeSW Field

Resize grip for the southwest corner.

public Avalonia.Input.WindowDecorationsElementRole ResizeSW

ResizeW Field

Resize grip for the west (left) edge.

public Avalonia.Input.WindowDecorationsElementRole ResizeW

TitleBar Field

The element acts as a titlebar drag area. Clicking and dragging on this element initiates a platform window move.

public Avalonia.Input.WindowDecorationsElementRole TitleBar

User Field

An interactive element set by user code that should receive input even when overlapping chrome areas. Has the same effect as Avalonia.Input.WindowDecorationsElementRole.DecorationsElement but is intended for use by application developers.

public Avalonia.Input.WindowDecorationsElementRole User