Button Controls
Avalonia UI has a variety of button-type controls:
Control | Description |
---|---|
Button | The basic button control - can display text, an icon or both. Has standard 'click' behavior. |
RepeatButton | A button that raises its click event repeatedly when it is pressed and held. |
RadioButton | A button that has a selected state. It can be placed in a group so that selection of one button deselects all the others in the group. |
Toggle Button | A button that has a selected state and a unselected state. Subsequent clicks 'toggle' this state. A 'checked' pseudo class allows different styles to be allocated to the selected and unselected states. |
ButtonSpinner | A control with two spin buttons and a content zone. |
SplitButton | This functions as a button with primary and secondary parts that can be pressed independently. The primary part behaves like standard button, and the secondary part opens a flyout with additional actions. |
ToggleSplitButton | This functions as a button with primary and secondary parts that can be pressed independently. The primary part behaves like toggle button, and the secondary part opens a flyout with additional actions. |