I want to change the color of multiple textbox with a certain delay. But the current code makes this the total delay.
private void Button_Click(object sender, RoutedEventArgs e)
{
System.Threading.Tasks.Task.Delay(25).Wait();
EMS.Background = RED;
System.Threading.Tasks.Task.Delay(50).Wait();
XMS.Background = RED;
System.Threading.Tasks.Task.Delay(50).Wait();
XSMS.Background = RED;
System.Threading.Tasks.Task.Delay(2000).Wait();
}