How to scroll WPF ScrollViewer's content to specific location
I am writing my custom WPF ItemsControl to display a list of item. The items are shown embedded inside a ScrollViewer: <Style TargetType="MyCustomItemsControl"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="MyCustomItemsControl"> <ScrollViewer x:Name="PART_MyScrollViewer" > <ItemsPresenter/> </ScrollViewer> </ControlTemplate> </Setter.Value> </Setter> </Style> I want to make sure that when I move the mouse into the control, a particular item (marked as selected) will be scrolled into the mouse position. In my OnMouseEnter method I am able to find the item but I don't