WPF 中使用MVVM模式后,找回ListBox中的ListBoxItem元素时间:2023-03-08 19:37:21 ListBoxItem lstitem = this.list.ItemContainerGenerator.ContainerFromItem(m) as ListBoxItem; 其中this.list是使用了mvvm模式绑定了数据集的ListBox