Using Silverlight 4.
I have two visual states for my control. I want to change the focus from one textbox to another when the states change.
What is the best way to do this using MVVM?
I was hoping to use the visualstatemanager to do it or a behavior… but I have not figured out a way.
If I were you I’d create a FocusBehaviour, with a FocusBehavior.IsFocused property, add that Behaviour on your Control and in the VSM state set IsFocused=True.