Metro Nuggets

Bitesized tidbits for building Modern (Metro) apps.

Tag Archives: MessagePrompt

Using the CustomMessageBox in OnBackKeyPressed

Sometimes in your app you may need to prompt the user for something when they’ve tapped the back button on the phone. If you wanted to offer the user a little more than just Ok/Cancel buttons, then you might have thought about using the CustomMessageBox from the Windows Phone toolkit, I know I did. But I was running into a nightmare problem where the user would press back, the prompt would  should and then almost instantly close. Every blog post I could find had the code in the same way, so how to fix?

 

Read more of this post