wpf中防止界面卡死的写法
2021-04-09 22:27
标签:分享图片 class col one sed click isp show windows wpf中防止界面卡死的写法 标签:分享图片 class col one sed click isp show windows 原文地址:https://www.cnblogs.com/lonelyxmas/p/9055305.html
Action action = new Action(() => {
System.Threading.Thread.Sleep(3000);
this.Dispatcher.BeginInvoke(new Action(() =>
{
this.button1.Content = "计算完毕";
}), System.Windows.Threading.DispatcherPriority.SystemIdle, null);
});
action.BeginInvoke(null,null);
上一篇:C# Redis