wpf中在自己创建线程中调用控件的问题

代码示例:

this.Dispatcher.Invoke(DispatcherPriority.Normal, (ThreadStart)delegate ()
{
    TextBox.Content = "hello";
});

TextBox为需要操作的控件

猜你喜欢

转载自blog.csdn.net/qq_34248512/article/details/80528520