Skip to main content
Version: 11.0.x

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.
RepeatButtonA button that raises its click event repeatedly when it is pressed and held.
RadioButtonA 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.
ButtonSpinnerA control with two spin buttons and a content zone.
SplitButtonThis 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.
ToggleSplitButtonThis 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.