private void button2_Click(object sender, RoutedEventArgs e) { ctrl.Dispatcher.Invoke(new Action(() => ctrl.AddStuff())); }