SelectableMixin Class

Summary

Adds selectable functionality to control classes.
Namespace
Avalonia.Controls.Mixins
Base Types
  • object
graph BT Type-->Base0["object"] Type["SelectableMixin"] class Type type-node

Syntax

public static class SelectableMixin

Remarks

The SelectableMixin adds behavior to a control which can be selected. It adds the following behavior:

  • Raises an 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.

Mixins apply themselves to classes and not instances, and as such should be created in a static constructor.

Methods

Name Value Summary
Attach<TControl>(AvaloniaProperty<bool>) void
Initializes a new instance of the SelectableMixin class.
static