WPF / MVVM:在不同视图中同步滚动两个datagrids [英] WPF/MVVM: Sync scrolling of two datagrids in different views

查看:174
本文介绍了WPF / MVVM:在不同视图中同步滚动两个datagrids的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个datagrids并排绑定到不同的数据表,每个表都有自己的视图。

I have two datagrids side by side bound to different data tables and each with their own view.

数据表具有相同的行数,我想两个网格保持相同的滚动位置。

The datatables both have the same number of rows, and I want both grids to maintain the same scroll position.

我无法找到一种使用MVVM的方法...任何人都有任何想法?

I am having trouble finding a way to do this using MVVM... anyone have any ideas?

谢谢!
-Steven

Thanks! -Steven

推荐答案

看看codeproject 滚动同步

Take a look at codeproject Scroll Synchronization

这篇关于WPF / MVVM:在不同视图中同步滚动两个datagrids的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆