WPF让一个文本框自动获取焦点:

来源:互联网 发布:linux socket编程 pdf 编辑:程序博客网 时间:2024/06/06 02:05
this.Dispatcher.BeginInvoke(DispatcherPriority.Background,                (Action)(() => { Keyboard.Focus(TextBox2); }));
<a target=_blank href="http://bbs.csdn.net/topics/370200371">原文链接</a>

0 0