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
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