SelectableMixin Class
Definition
Adds selectable functionality to control classes.
public class SelectableMixin
Remarks
The Avalonia.Controls.Mixins.SelectableMixin adds behavior to a control which can be selected. It adds the following behavior:
- Raises an Avalonia.Controls.Primitives.SelectingItemsControl.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.
Mixins apply themselves to classes and not instances, and as such should be created in a static constructor.
Methods
| Name | Description |
|---|---|
| Attach | No summary available. |
Attach Method
public void Attach<TControl>(Avalonia.AvaloniaProperty<bool> isSelected)
Parameters
isSelected Avalonia.AvaloniaProperty<bool>
Type Parameters
TControl