ListBoxItem lstitem = this.list.ItemContainerGenerator.ContainerFromItem(m) as ListBoxItem;

其中this.list是使用了mvvm模式绑定了数据集的ListBox

posted on 2016-01-15 18:02  碎儿  阅读(1270)  评论(0编辑  收藏  举报