Добавьте ссылки на Microsoft.Xna.Framework
и Microsoft.Xna.Framework.GamerServices
, и тогда вы сможете сделать следующее:
Guide.BeginShowMessageBox("Title",
"Text",
new List<String> { "Answer 1", "Answer 2" },
0, // Focus button
MessageBoxIcon.Alert,
asyncResult =>
{
int? response = Guide.EndShowMessageBox(asyncResult);
if(response == null)
{
// Back button pressed
}
else if(response == 0)
{
// "Answer 1" pressed
}
else if(response == 1)
{
// "Answer 2" pressed
}
},
null);
Я проверил это с Windows Phone 7, и, похоже, он работает.