foreach (var r in sec.Records) { listView.Dispatcher.Invoke((new Action(delegate() { listView.Items.Add(r); })), DispatcherPriority.SystemIdle); }
wpf 界面线程 添加项
原文:http://www.cnblogs.com/pengde/p/5994092.html