摘要: 只用 Keyboard.Focus 似乎不能让像是在TreeViewItem的Header之类的属性中的文本框获取焦点。 Dispatcher.BeginInvoke(DispatcherPriority.Input, new Action(delegate() { 目标TextBox.Focus( 阅读全文
posted @ 2018-03-02 19:29 黑龙大爷 阅读(107) 评论(0) 推荐(0)
摘要: 1 internal class BinaryNodeItem //作用于内部的自定义类型 2 { 3 public int ID { get; set; } //对应SQL表中id值,本节点ID 4 public string Name { get; set; } //对应SQL表中name值,用 阅读全文
posted @ 2017-08-24 18:25 黑龙大爷 阅读(502) 评论(0) 推荐(0)
摘要: 1 (DataRowView)DataGrid_Result.CurrentCell.Item)[DataGrid_Result.CurrentCell.Column.DisplayIndex].ToString() 测试时 SelectionMode 为 Cell。 CurrentCell 和 S 阅读全文
posted @ 2017-08-03 17:43 黑龙大爷 阅读(2886) 评论(0) 推荐(1)
点击右上角即可分享
微信分享提示