I want to just show a Message for a short time in TextBlock. I'm using this code
Label1.Text = "Wrong Password!";
System.Threading.Thread.Sleep(5000);
Label1.Text = " ";
But this is not working, if anyone have other better logic then please do Answer!
The code above will sleep the UI thread, so what essentially happens is this:
To work around this do something like:
This will: