C# 子线程修改控件值

Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() =>
{
// 在子线程中不能直接修改控件值会闪退

// 在这里修改控制值
}));

posted @ 2021-12-08 15:43  荣超  阅读(140)  评论(0编辑  收藏  举报