Blog

Display MessageBox in WP7(XNA)

Posted by Ibrahim Ersoy Blogs | Windows Phone 8 May 23, 2012
You may need to show MessageBox in a WP7-XNA project,here is how its done!

Assuming you need to show a MessageBox in an XNA application on WP7,the easiest way is to add System.Windows namespace.

using System.Windows;


Then you need to call "Classic" Show function of MessageBox


 MessageBox.Show("Hello There!");


Here have a look at what we've achieved: 


 


Hope it helps!
post comment
     
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Get Career Advice from Experts