I have my window with a progress bar in it.
So in my "Do" Method, I want to change a status text and my progress bar without blocking the UI:
public void Do()
{
ProgressBar.Value = 0;
StateLabel.Content = "Start..."
// Do Things
ProgressBar.Value = 50;
StateLabel.Content = "Running part 2"
// Do things
ProgressBar.Value = 100;
StateLabel.Content = "Finished. Closing progress window..."
Thread.Sleep(1000);
this.Close();
}