Using async to sleep in a thread without freezing [closed]
As I mentioned your code worked fine for me, But perhaps try setting your handler to async and running the Task.Delay in there. private async void Button_Click_1(object sender, RoutedEventArgs e) { label1.Text = “Test”; await Task.Delay(2000); label1.Text = “”; }