WindowDecorationProperties Class
Definition
Provides attached properties for window decoration hit-testing.
public class WindowDecorationProperties
Methods
| Name | Description |
|---|---|
| GetElementRole | Gets the Avalonia.Input.WindowDecorationsElementRole for the specified element. |
| SetElementRole | Sets 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
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
Remarks
Setting an element role only has an effect if Avalonia.Controls.Window.ExtendClientAreaToDecorationsHint is true.
Fields
| Name | Description |
|---|---|
| ElementRoleProperty | 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. |
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
Remarks
Setting an element role only has an effect if Avalonia.Controls.Window.ExtendClientAreaToDecorationsHint is true.