wpf中c#调用多线程,原理记不得了,格式先记下
Thread thread = new Thread(new ThreadStart(() =>
{
//线程中的代码
//在线程中调用主线程
Dispatcher.Invoke(DispatcherPriority.Normal, (ThreadStart)delegate ()
{
//主线程中的代码
});
}));
thread.IsBackground = true;
thread.Start();
wpf中调用多线程
最新推荐文章于 2024-01-03 15:56:55 发布