摘要:
public MainWindow() { InitializeComponent(); Thread thread = new Thread(CrossThreadFlush); thread.IsBackground = true; thread.Start(); } private void CrossThreadFlush() { //将sleep和无限循环放在等待异步的外面 Thread.Sleep(2000); Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(ThreadFunction)); } priv. 阅读全文
posted @ 2011-08-18 10:41
曱甴仔
阅读(123)
评论(0)
推荐(0)
浙公网安备 33010602011771号