The calling Thread cannot access this object because a different thread owns it. Exception
问题 private void Thread1_Exe() { try { int sleepValT1 = Convert.ToInt32(listBoxT2.SelectedValue); int StartLoop = 0; int EndLoop = 10000; for (int i = StartLoop; i <= EndLoop; i++) { Dispatcher.BeginInvoke( new Action(() => listboxE1.Items.Add("T1: Execution Count> " + i.ToString()))); Thread.Sleep(sleepValT1); } } catch (Exception Ex) { MessageBox.Show(Ex.Message); } } I was trying to call the above function on different thread private void thread1_Click(object sender, RoutedEventArgs e) {