【发布时间】:2015-08-04 13:17:18
【问题描述】:
当我使用 WinForms 时,我会在我的 bg_DoWork 方法中这样做:
status.Invoke(new Action(() => { status.Content = e.ToString(); }));
status.Invoke(new Action(() => { status.Refresh(); }));
但是,在我的 WPF 应用程序中,我收到一条错误消息,指出 Invoke 不存在 Label。
任何帮助将不胜感激。
【问题讨论】:
标签: c# wpf xaml backgroundworker