Examples of WP7 Marketplace Certification Failures
Submitted by smartyP on Mon, 01/03/2011 - 15:30I have now made it through a baker's dozen Windows Phone Marketplace certification attempts for SmartyPantsGaming, and thought I would share the various ways in which I've failed in my apps. I generally think the best way to learn is to learn from your mistakes, but learning from someone else's mistakes is even better - so here is a rundown of ways I've failed WP7 marketplace certification so far.
The back button should close popup windows
In the release of Matchingo Free we received an app rejection because the name entry dialog popup could not be closed by pressing the back button.
If the current page displays a context menu or a dialog, the pressing of the Back button must close the menu or dialog and cancel the backward navigation to the previous page.
To fix the issue I setup a boolean flag to keep track of when the name entry dialog was open, and then override the back button event. If the dialog is open and the back button is pressed then I cancel the back button event so it doesn't continue to bubble up, and close the popup window. Here is the code block:
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
{
if (IsNameEntryPopupOpen)
{
e.Cancel = true;
ShowHideNamePopup(false);
}
else
{
base.OnBackKeyPress(e);
}
}
(click 'read more' to keep reading..)