mmanela/diffplex

Exception Using GoTo in WPF SideBySide

DavidJSnyder opened this issue · 1 comments

I am trying to use GoTo to scroll to the differences in the WPF SideBySide and am getting an exception when I call it:
"System.InvalidOperationException: 'The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals."

You should be able to duplicate by adding something like
DiffView.GoTo(25);
to the end of LoadData in WPFDemo.

Realized that if I wait for the control to be visible then GoTo works.