有没有办法使文本框中的插入符在失去焦点时仍可见?
private void MyMethod()
{
TextBox txt = ...;
txt.LostFocus += new RoutedEventHandler(staticTextBox_LostFocus);
}
private static void staticTextBox_LostFocus(object sender, RoutedEventArgs e)
{
e.Handled = true;
}