wpf 界面线程 添加项

foreach (var r in sec.Records)
{
    listView.Dispatcher.Invoke((new Action(delegate()
    {
        listView.Items.Add(r);
    })), DispatcherPriority.SystemIdle);
}
至少证明我们还活着
原文地址:https://www.cnblogs.com/pengde/p/5994092.html