Xna message box windows phone




















Windows Phone 7 also supports message boxes, although in two separate ways. If you decide to develop a Silverlight application for Windows Phone 7, you will have the option of usign MessageBox - the standard class that allows displaying a message to the user.

One interesting fact - this MessageBox class is quite limited when it comes to user customization. It is called directly via MessageBox. Show , just like it was done in a desktop application. The first overload will allow the developer to display a simple message with an OK button - as basic as it can get and it is perfect for situations where you don't need the user to make a decision.

There is no title here and no additional buttons, so this might be a limitation in some situations. Here is when the second overload comes in the game. It offers a bit more customization by allowing the developer to set the title and actually select, whether there is an OK or OKCancel button set needed. When you want to check the result, you will be promted with an enumeration of possible values and in fact, it is bigger than you expect:. Only OK and Cancel will work if checked against.

Other options will simply be ignored, since there is no Yes or No button available. Now, you might think - what about None? This also isn't an option - when the user closes the MessageBox in a non-standard manner e. Cancel, even if no Cancel button is pressed. Active Oldest Votes. Improve this answer. George Clingerman George Clingerman 1, 8 8 silver badges 14 14 bronze badges. Okay, so I will have to write my own Kevin Gosse Kevin Gosse Paul Hoenecke Paul Hoenecke 5, 1 1 gold badge 18 18 silver badges 20 20 bronze badges.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.

However, the user experience is different than what you get from the message boxes within the native phone applications eg: deleting a text. With the native message boxes, the application bar disappears, but with the XNA message box, it gets greyed out. Also within the XNA framework you cannot add additional components to the message box. While using a Windows Phone you get prompted every once in awhile by a message box. Custom Applications have them, even apps native to the phone has them.

When deleting a text message or a contact you get a nice prompt asking you if you want to delete it. But there is something unique about these message boxes that separates them from the one that you and I get to have.

LandscapeRight: The display is rotated clockwise ninety degrees into a landscape presentation, where the width is greater than the height. Portrait: The orientation is a portrait presentation, where the height is greater than the width. To get screen device name use: Window. View All. Ibrahim Ersoy Updated date Aug 11, Next Recommended Reading.



0コメント

  • 1000 / 1000