背景: 自己在用listview添加数据的突然出现问题,直接蒙蔽了,因为自己用WPF不是很久。 找原因过程: 异常信息: ItemsSource 正在使用时操作无效 说明是与ItemsSource有关。 我的代码: void InitUI() { var AllRule = Service.GetAllRule(); if (AllRule != null && AllRule.Length > 0) { GroupRuleListView.ItemsSource = AllRule; //直…