更新时间:2023-11-20 21:47:16
我认为这会为您提供帮助:
I think this will help you:
if (chkSelectAll.IsChecked == true) {
for (int y = listitem.Items.Count - 1; y >= 0; y--) {
System.Windows.Controls.CheckBox chk= (System.Windows.Controls.CheckBox)listitem.Items[y];
chk.IsChecked = true;
}
}
此代码包含在您的活动中。
This code goes inside your event.