RepeatButton
RepeatButton acts like Button except that it continually raises the Click event as long as the button is pressed. The frequency of the raised Click events depends on the values of RepeatButton’s Delay and Interval properties, whose default values are both 250 milliseconds. The default look of a RepeatButton is the same as that of Button.
The behavior of RepeatButton might sound strange at first, but it is useful (and standard) for buttons that increment or decrement a value each time they are pressed. For example, the buttons at the ends of a scrollbar exhibit the repeat-press behavior when you press and hold them. Or, if you were to build a numeric “up-down” control, you would likely want to use two RepeatButtons to control the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access