As titled, and basically I wanted to do the same thing as this for WPF but in Silverlight instead.
But in my TextBox.LostFocus event, there is no e.Handled. And I also tried to use VisualStateManger.GoToState to Focused State:
VisualStateManager.GoToState(TextBox1, "Focused", false);
TextBox1.SelectionStart = 0;
TextBox1.SelectionLength = 3;
TextBox1.SelectionForeground = new SolidColorBrush(Colors.Orange);
But it doesn't work either.
Is there any workaround?