private void ThreadStartingPoint() { AWindow tempWindow = new AWindow(mainVM.TempVM); tempWindow.Show(); System.Windows.Threading.Dispatcher.Run(); }