O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required