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集合操作
最新推荐文章于 2025-01-04 16:33:35 发布