正文Winform与WPF异步修改控件属性IP云V管理员/2022-08-05/7 阅读 08/05提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 Winform方式: if (this.InvokeRequired) { this.Invoke( new Action ( delegate(Form form1) { lblTip.Content = msg; }) , this ); }WPF方式: this.Dispatcher.BeginInvoke((Action)delegate() { lblTip.Content = msg; });