WPF: How to make two panel share the same vertical scroll bar and each panel owns itsefle horizontal scroll bar?

  • Thread starter Thread starter Jane Jie Chen
  • Start date Start date
J

Jane Jie Chen

Guest
we need to create new WPF tool to compare two files.

This compare tool will show the contents of two files line by line and indicates the difference in the same line.

First we create two ListViews to display both source file and target file.

So each ListView has its own vertical scroll bar and horizontal scroll bar.

What we notice is that if we scroll vertical bar in left list view and right list view does not scroll. So the line number are off each other. That is not we want.

We nee to scroll vertical bar and both ListViews move together. So we always see the same line are aligned together.

Does anyone has a good suggestion what control we should use so two panels share the same vertical scroll bar and own its own horizontal scroll bar. Thx!

Continue reading...
 
Back
Top