System.Windows.Application.Current.Dispatcher.Invoke(() =>
{
//代码
});
WPF solves the problem of cross-thread access error reporting
Guess you like
Origin blog.csdn.net/wwwwerewrew/article/details/131624737
Recommended
Ranking