Bring controls to ViewPort to change focus for ScrollViewer SL4

Basically I'm looking for something like BringIntoViewOnFocusChange to SL4, I need to get any control had the focus to automatically switch the view mode ViewPortof ScrollViewer: enabled Whether vertical or horizontal scrolling, or a combination of both. Therefore, if we say that there is a large view, with controls outside the field of view, since user tabs along it place any control that is focused on viewing for smooth scrolling without having to do it manually.

I did it with behavior and installed VerticalOffsetand attached it to each individual object, but there should be a better way, and this should often occur for people (except that I could not find anything specific to search for), so I would prefer not to reinvent the wheel here , if I can. So please share some enlightenment?

+5
source share
2 answers

I ended up going that route, and that was what I was looking for, and works great. Thanks to everyone who looked.

http://mattduffield.wordpress.com/2011/01/15/automatically-scrolling-to-a-selected-item-in-a-scrollviewer-in-silverlight/

+1
source

All Articles