忘了给你样式中的事件 List<CheckBox> CheckList = new List<CheckBox>(); private void CheckBox_Click(object sender, RoutedEventArgs e) { if ((sender as CheckBox).IsChecked == true) { CheckList.Add(sender as CheckBox); } else { CheckList.Remove(sender as CheckBox); } }
8,735
社区成员
12,029
社区内容
加载中
试试用AI创作助手写篇文章吧