WPF线程同步

来源:互联网 发布:linux superuser 编辑:程序博客网 时间:2024/06/14 08:33
            this.Dispatcher.Invoke(DispatcherPriority.Normal, (ThreadStart)delegate ()            {                lblHello.Content = "Hello,Dispatcher";            });            Dispatcher.Invoke(new Action(() =>            {                lblHello.Content = "Hello,Dispatcher";            }));

0 0