I am making a turn based silverlight game(Cards game). and I want to delay between turns.
I've tried the Thread.Sleep, but it halts my UI. I've tried to use DispatcherTimer, but it acts funny. sometimes it works, sometimes it skips.
My code works perfectly with DipatcherTimer when i set the Interval to 3 seconds, but when i set the interval to 1 second, it starts to skip some rounds.
Is there another way to create this delay?
Update: I just restarted my windows, and it worked perfectly for a while. One hour later, I tried again, without changing the code, it started skipping! i dont get it.