Skip to main content
Version: 11.0.0

Button Controls

Avalonia UI has a variety of button-type controls:

ControlDescription
ButtonThe basic button control - can display text, an icon or both. Has standard 'click' behavior.
Repeat ButtonA button that raises its click event repeatedly when it is pressed and held.
Radio ButtonA 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 ButtonA 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.
Button SpinnerA control with two spin buttons and a content zone.
Split ButtonThis 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.
Toggle Split ButtonThis 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.