摘要:
在进行WPF开发过程中,需要从一个新的线程中操作ObservableCollection,结果程序抛出一个NotSupportedException的错误:This type of CollectionView does not support changes to its SourceCollection froma thread different fromthe Dispatcher thread看其字面意思是跨线程操作不被支持。下面的代码展示了这种错误出现的根源: ObservableCollection users = new ObservableCollection(); ... 阅读全文
posted @ 2014-01-27 16:18
三叶草╮
阅读(312)
评论(0)
推荐(0)