SelectableMixin Class
Adds selectable functionality to control classes.
Definition
Namespace: Avalonia.Controls.Mixins
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public static class SelectableMixin
Public NotInheritable Class SelectableMixin
[<AbstractClassAttribute>]
[<SealedAttribute>]
type SelectableMixin = class end
| Inheritance | Object → SelectableMixin |
Remarks
The SelectableMixin adds behavior to a control which can be selected. It adds the following behavior:
- Raises an IsSelectedChangedEvent when the value if the IsSelected property changes.Adds a 'selected' class to selected controls.Requests that the control is scrolled into view when focused.
Methods
| Attach(TControl)(AvaloniaProperty(Boolean)) | Initializes a new instance of the SelectableMixin class. |