I have a simple WPF app I'm trying to simulate the idea of waiting for something to load. I thought I could do a Thread.Sleep
in the following snippet but it didn't sleep for 10 seconds before setting to busy indicator to false.
What concept am I missing here about WPF and how can I simulate a wait time?
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Thread.Sleep(10000);
LogonBusyIndicator.IsBusy = false;
}