Created
July 25, 2014 18:51
-
-
Save dgkanatsios/737be3ecd23a6cc0fb3f to your computer and use it in GitHub Desktop.
A snippet to emulate Thread.Sleep in Windows Phone apps via XAML Storyboards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async static Task CreateSleepStoryboard(int ms) | |
{ | |
Storyboard sb = new Storyboard(); | |
sb.Duration = TimeSpan.FromMilliseconds(ms); | |
await sb.BeginAsync(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment