wpf防止界面卡死
1 AsyncInvokeHelper.CallbackInvoke(new Action(() => 2 { 3 System.Threading.Tasks.Task.Factory.StartNew(() => 4 { 5 6 //耗时卡界面的操作 7 System.Threading.Thread.Sleep(2000); 8 9 }); 10 }));
posted on 2019-05-23 18:48 Shine-Zhong 阅读(1411) 评论(2) 编辑 收藏 举报