Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple listboxes scroll at same time?

Tags:

c#

wpf

I have 3 listboxes and I want to scroll one meanwhile others also are scrolling. I can scroll by mousewheel and drag scrollbar.

like image 953
zhangyiying Avatar asked Aug 16 '12 07:08

zhangyiying


2 Answers

Here you go:

Two listbox scrollbar in synchronisation

like image 94
Willem Avatar answered Oct 13 '22 00:10

Willem


Have a look at this article. It shows how this can be done by using binding and RenderTransform.

Another thing you might want to check is the ScrollViewer.ScrollChanged event. You can possibly listen to this event and set the scrolling for your listboxes as necessary.

like image 34
Adi Lester Avatar answered Oct 12 '22 23:10

Adi Lester



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!