Skip to content

Instantly share code, notes, and snippets.

@SriramSakthivel
Created April 18, 2015 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SriramSakthivel/a225f090e7b9493905fb to your computer and use it in GitHub Desktop.
Save SriramSakthivel/a225f090e7b9493905fb to your computer and use it in GitHub Desktop.
Snippet to ShowDialog asynchronously which won't work
Window window = YourWindow();
bool? result = await Task.Run(()=> window.ShowDialog());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment