列表框,滚动同步 [英] Listboxes, scrolling in sync
本文介绍了列表框,滚动同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有2列表框,大小相同,彼此相邻。基本上我用它们来代表链接项目......具有在另一名和姓两列,并在Excel中的行数,有说,名字类似。
I have 2 listboxes, same size, next to each other. Basically I am using them to represent linked items...Similar to having 2 columns and a number of rows in excel, with say, first name in one and last name in the other.
我想知道如果我可以让这个当一个列表框滚动,同步其他列表框滚动呢?
I am wondering if I could make it so that when one listbox is scrolled, the other listbox scrolls in sync with it?
希望这是有道理的。谢谢提前
Hope this makes sense. Thanks ahead.
推荐答案
有一个看看这篇文章:
http://www.codeproject.com/KB/WPF/ScrollSynchronization.aspx
这篇关于列表框,滚动同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文