摘要: <DataTemplate x:Key="CheckBoxDataTemplate"> <Grid x:Name="Grid" HorizontalAlignment="Center" VerticalAlignment="Center"> <CheckBox Click="CheckBox_Che 阅读全文
posted @ 2020-05-27 13:16 _York 阅读(2465) 评论(0) 推荐(0) 编辑
摘要: 使用 DataGridRow dr = (DataGridRow)ListGrid.ItemContainerGenerator.ContainerFromItem(item); 有时获取 DataGridRow 为NULL 需要在DataGrid上加属性 VirtualizingStackPane 阅读全文
posted @ 2020-05-27 13:11 _York 阅读(762) 评论(0) 推荐(1) 编辑
摘要: <DataGridCheckBoxColumn Header="选择"> <DataGridCheckBoxColumn.HeaderTemplate> <DataTemplate> <CheckBox x:Name="ckbSelectedAll" Content="全选" Checked="ck 阅读全文
posted @ 2020-05-27 09:41 _York 阅读(1734) 评论(0) 推荐(0) 编辑