WindowDecorationsElementRole Enum
Definition
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
Fields
| Name | Description |
|---|---|
| CloseButton | 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. |
| DecorationsElement | 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. |
| FullScreenButton | The element acts as the window fullscreen toggle button. Treated as an interactive decoration element on all platforms. |
| MaximizeButton | 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. |
| MinimizeButton | 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. |
| None | No special role. The element is invisible to chrome hit-testing. |
| ResizeE | Resize grip for the east (right) edge. |
| ResizeN | Resize grip for the north (top) edge. |
| ResizeNE | Resize grip for the northeast corner. |
| ResizeNW | Resize grip for the northwest corner. |
| ResizeS | Resize grip for the south (bottom) edge. |
| ResizeSE | Resize grip for the southeast corner. |
| ResizeSW | Resize grip for the southwest corner. |
| ResizeW | Resize grip for the west (left) edge. |
| TitleBar | The element acts as a titlebar drag area. Clicking and dragging on this element initiates a platform window move. |
| User | 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. |
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