Winform方式:
if (this.InvokeRequired)
{
this.Invoke(
new Action (
delegate(Form form1)
{
lblTip.Content = msg;
})
, this
);
}
WPF方式:
this.Dispatcher.BeginInvoke((Action)delegate()
{
lblTip.Content = msg;
});
Winform与WPF异步修改控件属性
最新推荐文章于 2025-12-19 15:54:39 发布
1858

被折叠的 条评论
为什么被折叠?



