摘要: 1 private void SetSelectIndex(List<int> listIndex) 2 { 3 try 4 { 5 foreach (var i in listIndex) 6 { 7 if (i >= datagridSig.Items.Count) 8 continue; 9 阅读全文
posted @ 2024-04-29 15:26 DarkChaos 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// 设置datagrid选中多行 3 /// </summary> 4 /// <param name="listIndex"></param> 5 private void SetSelectMessageIndex(List<int> listIndex) 阅读全文
posted @ 2024-04-15 17:28 DarkChaos 阅读(293) 评论(0) 推荐(0) 编辑
摘要: private static System.ComponentModel.DependencyPropertyDescriptor descriptor = System.ComponentModel.DependencyPropertyDescriptor.FromProperty(TextBlo 阅读全文
posted @ 2023-06-01 15:30 DarkChaos 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 有一个list放到ItemsControl中,每个元素做一个itemsTemplate,但又希望列表中每列的宽度一致,可以在ItemsControl 中设置Grid.IsSharedSizeScope="True",并在ItemsTemplate中添加Grid,在RowDefinition或Colu 阅读全文
posted @ 2023-03-08 10:20 DarkChaos 阅读(119) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示