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 RepeatButton
s to control the ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.