Sharing HorizontalOffset between two ScrollViewers created in different DataTemplates
问题 I've got two ItemsControls, which use the same collection as an ItemsSource. ItemTemplates for both ItemsControls are very similar: there is a ScrollViewer inside both DataTemplates. Question: If I change HorizontalOffset in one of the ScrollViewers generated in the first ItemsControl, how can I scroll the ScrollViewer from the second ItemsControl, which has the same object as a DataContext , to the same HorizontalOffset? 回答1: As Rachel mentioned, there may be lots of solutions about your