c# - How to delay an action on WP 8.1 -


i developing windows phone 8.1 (non sl) application. have button onclick event.

when button clicked, user taken page using this:

frame.navigate(typeof(secondpage)); 

what options delaying navigation? want wait half second before moving user onto second page.

i tried thread.sleep() i'm getting error saying unresolved symbol on word thread.

plus, should using @ all? appreciated.

thank you.

try out:

await system.threading.tasks.task.delay(500); 

windows phone tries asynchronous possible. should work purpose.

edit: added qualified namespace. sure reference added project well.


Comments