摘要:
场景:Public Class A{ Thread thd; public A() { thd=new Thread(new ThreadStart(Demo)); thd.IsBackground=true; thd.Start(); } public Staticvoid Demo() { UI _UI=new UI(); _UI.tb.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal,new Action()=>{ _UI.tb.Text="我是描述控件!"; }) 阅读全文