原文地址:http://stackoverflow.com/questions/16866309/listbox-scroll-into-view-with-mvvm public class ScrollingListBox : ListBox { protected override void OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { if (e.NewItems!=
1.错误提示:Cannot have multiple items selected when the SelectionMode is Single. 刚刚在处理两个Listbox时,将其中一个listBoxOne中的数据搬移到另一个Listboxtwo时,第一条数据正确的搬移过去了,但是在移动第二条数据时,就产生如标题所示的错误. 仔细看了listbox的属性,在它的SelectMode属性中有两个值:一个是Single,表明listbox只能容纳一条数据,也就是当你通过Items来添加数据