public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Thread thread = new Thread(GetValue); Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(thread.Start)); MessageBox.Show("Show Down"); int i = 0; while (i == 0) { if (thread.IsAlive) { thread.Join(); i++; } } } public void GetValue() { MessageBox.Show("Show Up"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)