this is great, but how does it work without the Button? I click on a Button in the MainWindow, in this MainWindow i have a frame and i want to show the page after it's loaded.
The main problem is to fill a RadGridView with ItemSource.
The Busyindicator is runnin well, but i can't bind the ItemSource to the Grid, during backgroundworker ist working. But how can i bind the ItemSource?
this.window = Window.GetWindow(sender as DependencyObject) as MainWindow;
var backgroundWorker = new BackgroundWorker();
backgroundWorker.DoWork += new DoWorkEventHandler(backgroundWorker_DoWork);
backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandlerbackgroundWorker_RunWorkerCompleted);
// FileList = List<
FileList = winscp.GetFileNameInFolder(AktVerbindung, "spx", false);
QUELLEGrd.DataContext = FileList;
-- ERROR --
The calling thread can not access this object because the object is owned by another thread.
How can i solve this?