The best possible approach I can suggest you would be to use a static RoutedCommand and CommandBindings. The RoutedCommand will call the ScrollIntoView
method, this way you would be able to execute the RoutedCommand from the ViewModel passing the desired GanttTask. For your convenience I have prepared a sample project which demonstrates the exact approach.
Hope this helps.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.