タイトルのとおり、基本的にはこれと同じことを WPFで行いたかったのですが、代わりに Silverlight で行いました。
しかし、私の TextBox.LostFocus イベントには e.Handled がありません。また、VisualStateManger.GoToState を Focused State に使用しようとしました。
VisualStateManager.GoToState(TextBox1, "Focused", false);
TextBox1.SelectionStart = 0;
TextBox1.SelectionLength = 3;
TextBox1.SelectionForeground = new SolidColorBrush(Colors.Orange);
しかし、それも機能しません。
回避策はありますか?