Skip to main content

WindowDecorationProperties Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Provides attached properties for window decoration hit-testing.

public class WindowDecorationProperties

Inheritance: object -> WindowDecorationProperties

Methods

NameDescription
GetElementRoleGets the Avalonia.Input.WindowDecorationsElementRole for the specified element.
SetElementRoleSets the Avalonia.Input.WindowDecorationsElementRole for the specified element.

GetElementRole Method

Gets the Avalonia.Input.WindowDecorationsElementRole for the specified element.

public Avalonia.Input.WindowDecorationsElementRole GetElementRole(Avalonia.Visual element)

Parameters

element Avalonia.Visual

Returns

Avalonia.Input.WindowDecorationsElementRole

SetElementRole Method

Sets the Avalonia.Input.WindowDecorationsElementRole for the specified element.

public void SetElementRole(Avalonia.Visual element, Avalonia.Input.WindowDecorationsElementRole value)

Parameters

element Avalonia.Visual

value Avalonia.Input.WindowDecorationsElementRole

Fields

NameDescription
ElementRolePropertyDefines the Avalonia.Input.WindowDecorationsElementRole attached property. Marks a visual element with a specific role for non-client hit-testing. Can be applied to any element in the visual tree, not limited to decoration children.

ElementRoleProperty Field

Defines the Avalonia.Input.WindowDecorationsElementRole attached property. Marks a visual element with a specific role for non-client hit-testing. Can be applied to any element in the visual tree, not limited to decoration children.

public Avalonia.AttachedProperty<Avalonia.Input.WindowDecorationsElementRole> ElementRoleProperty