Winform与WPF异步修改控件属性

Winform方式:
    if (this.InvokeRequired)
            {
                this.Invoke(
                    new Action (
                        delegate(Form form1)
                        {
                            lblTip.Content = msg;
                        })
                    , this
                );
            }
WPF方式:
            this.Dispatcher.BeginInvoke((Action)delegate()
            {
                lblTip.Content = msg;
            });
上一篇:php 根据日期获取星座


下一篇:软工作业No.6 甜美女孩第四周