В одном из моих приложений моей задачей было выйти, когда пользователь сбросил свою учетную запись. Приложение находится в магазине, поэтому проблем нет. я уверен, что вы можете достичь выхода с этим кодом, и это будет нормально:
var g = new Microsoft.Xna.Framework.Game();
g.Exit();
просто добавить ссылку на Microsoft.Xna.Framework.Game
look at this link
5.1.2 - App закрытия
The app must handle exceptions raised by the any of the managed or native System API
and not close unexpectedly. During the certification process, the app is monitored
for unexpected closure. An app that closes unexpectedly fails certification. The app
must continue to run and remain responsive to user input after the exception is
handled.
Например, вам просто нужно сообщение, так что ожидается EXIT.