For adding the message box you have to include the following packages:
|
1 2 |
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.GamerServices; |
If it is not there in the reference you have to add it in the reference.
This is the code for showing the message box.
|
1 2 3 4 5 6 |
Guide.BeginShowMessageBox("KHET 2.0", "Please enter a valid pair code.", new List<string> { "OK" }, 0, MessageBoxIcon.Alert, asyncResult => { int? returned = Guide.EndShowMessageBox(asyncResult); System.Diagnostics.Debug.WriteLine(returned.ToString()); }, null); |
Here KHET 2.0 is the message heading.
The next parameter is the body of the message.
OK is the button in the message.
Filed under: Windows Phone 7
Like this post? Subscribe to my RSS feed and get loads more!




Leave a Reply