The CSWPFThreading sample project illustrates two WPF threading models. The first one divides a long-running process into many snippets of workitems. Then the dispather of WPF will pick up the workitems one by one from the queue by their priority. T
本文实例讲述了C#中WPF使用多线程调用窗体组件的方法。分享给大家供大家参考。具体如下:
Thread thread=new Thread(new ThreadStart(TestThread));
thread.Start();
private void TestThread()
{
for (int i = 0; i { this.listBox1.Items.Add(this is a test!!!); }