I have a ScrollViewer which contains a Grid with multiple controls in it. The user can tab through the controls, but eventually they tab to a control that isn't in view – so they have to manully scroll to make the control visible again.
Is there any way to make the ScrollViewer scroll automatically so that the focussed control is always visible. Failing that, is there any way I can make this work, short of listening to a GotFocus event on every control and then scrolling the ScrollViewer to make the control visible?
At present I'm using Silverlight 2.
Best Answer
I tested this using Silverlight 3. I am not sure about SL2.
This is my XAML:
And this is the code-behind:
What I did was to click on Button #1 and tab until I get to Button #20. It worked for me. Give it a try and let me know how it works for you.