avalonia docs

RepeatButton

The RepeatButton is a Button control that has the added feature of regularly generating Click events while the button is being pressed down.

Reference

RepeatButton

Source code

RepeatButton.cs