views:

158

answers:

2

Hey all,

I have a listbox of items that I am using, and I have a button I made which scrolls up and down, but the only problem is, that you have to click every single time you want to scroll up and down a bit. I am looking for the functionality to simply hold down on the button and have it scroll.. is this possible in WPF? Perhaps I am overlooking something? I searched the internet and haven't found anything like it. Perhaps someone has done this before?

Any input would be appreciated, thanks!

+1  A: 

Use a RepeatButton.

bitbonk
+2  A: 

Try a RepeatButton. It's what WPF uses for the buttons at the end of scrollbars.

Christian Hayter