会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
暗炽
博客园
首页
新随笔
联系
订阅
管理
2024年4月29日
WPF 后台设置DataGrid选中多行
摘要: 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
阅读(141)
评论(0)
推荐(0)
2024年4月15日
WPF 在后台代码中选中DataGrid的多行
摘要: 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
阅读(372)
评论(0)
推荐(0)
2023年6月1日
WPF 监听TextBlock 的Text改变事件
摘要: private static System.ComponentModel.DependencyPropertyDescriptor descriptor = System.ComponentModel.DependencyPropertyDescriptor.FromProperty(TextBlo
阅读全文
posted @ 2023-06-01 15:30 DarkChaos
阅读(621)
评论(0)
推荐(1)
2023年3月8日
使不同的Grid行或列宽高同步
摘要: 有一个list放到ItemsControl中,每个元素做一个itemsTemplate,但又希望列表中每列的宽度一致,可以在ItemsControl 中设置Grid.IsSharedSizeScope="True",并在ItemsTemplate中添加Grid,在RowDefinition或Colu
阅读全文
posted @ 2023-03-08 10:20 DarkChaos
阅读(131)
评论(0)
推荐(0)
公告