I am developing an app for Windows Phone 8 with C#
And I've been working alot with MessageBox.Show()
, and All the time it used to show a PopUp message like i wanted , but then suddenly , it Won't show anything , I debugged the app , the code runs normally and compiles the Line MessageBox.Show("Something");
but it doesn't pop up !
I also tried to put it in another page , doesn't work too ! All i remember that yesterday I have messed with References of the Project But is that the problem ?
Anyways here's a photo of the references of my Project
When you build a Windows Phone Project it automatically generates all the required dependencies for you. You should be able to in your class file and add the following using
statement:
using System.Windows
Once you've done that you'll be able to implement the MessageBox
class. If not, then you'll need to do the following:
C:\Windows\Microsoft.Net\Assembly\GAC_MSIL\PresentationFramework
PresentationFramework.dll
Once you've referenced that library, you'll be able to call: MessageBox.Show(@"Something");
without a single hiccup.
Solved!
1.) Restarted my computer
2.) Deleted the app from the phone
3.) Debug
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With