开发者

WPF Scroll Button (Hold down functionality)

开发者 https://www.devze.com 2023-01-01 01:57 出处:网络
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 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 t开发者_运维知识库his before?

Any input would be appreciated, thanks!


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


Use a RepeatButton.

0

精彩评论

暂无评论...
验证码 换一张
取 消