4
正如标题所示,基本上我想要做与this for WPF相同的事情,但在Silverlight中取而代之。保持Silverlight文本框选择显示虽然没有重点?
但在我的TextBox.LostFocus事件中,没有e.Handled。我也尝试使用VisualStateManger.GoToState专注状态:
VisualStateManager.GoToState(TextBox1, "Focused", false);
TextBox1.SelectionStart = 0;
TextBox1.SelectionLength = 3;
TextBox1.SelectionForeground = new SolidColorBrush(Colors.Orange);
但它也不起作用。
有什么解决方法吗?