代码示例:
this.Dispatcher.Invoke(DispatcherPriority.Normal, (ThreadStart)delegate ()
{
TextBox.Content = "hello";
});
TextBox为需要操作的控件
代码示例:
this.Dispatcher.Invoke(DispatcherPriority.Normal, (ThreadStart)delegate ()
{
TextBox.Content = "hello";
});
TextBox为需要操作的控件