ThreadPool.QueueUserWorkItem(delegate
{
System.Threading.SynchronizationContext.SetSynchronizationContext(new
System.Windows.Threading.DispatcherSynchronizationContext(System.Windows.Application.Current.Dispatcher));
System.Threading.SynchronizationContext.Current.Post(pl =>
{
//里面写真正的业务内容
}, null);
});
WPF ViewModel中对ObservableCollection集合操作
最新推荐文章于 2024-06-13 14:30:48 发布