开发者

mouse scroll event

I have two TextBoxs I want to do following :

When I scroll the mouse in one text box then It will be scrolled to same position in the second one , and vice versa .

开发者_StackOverflow

Thanks for help .


Here is a link that will show you how to bind your scrollbars together:

http://www.mindscapehq.com/blog/index.php/2010/08/18/wpf-elements-how-to-build-a-multi-scheduler/

Basically, you would add the following code to your Value of your scrollbar:

Value="{Binding VerticalOffset, Mode=TwoWay, ElementName=YourOtherScrollBar}"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜