wpf
循环里面加入
Application.Current.Dispatcher.Invoke(new Action(()=> {
.... }), DispatcherPriority.Loaded);
可以同步响应,还有一个BeginInvoke
有时候可以用异步,有时候只能用同步。不清楚原因
Powered by: 博客园 Copyright © 2024 Learn more Powered by .NET 8.0 on Kubernetes