When I used WinForms, I would have done this in my bg_DoWork
method:
status.Invoke(new Action(() => { status.Content = e.ToString(); }));
status.Invoke(new Action(() => { status.Refresh(); }));
However in my WPF application I get an error saying that Invoke
does not exist for Label
.
Any help would be appreciated.
See Question&Answers more detail:os