Modal Pop Up on top of panorama control
A simple question:
My application first page is a panorama page. I want to show a modal pop up if user click on a button.
Can I show a modal pop up on top o开发者_StackOverflow社区f panorama control?
By the way, How can I show a modal pop up?
There are a number of options:
- Use the
Popup
control. - Use regular visual elements to construct your own dialog and show/hide accordingly.
- Use a third party library such as the Coding4Fun Toolkit that includes controls that provide this functionality (such as
InputPrompt
,MessagePrompt
orPasswordPrompt
).
Personally, I'd go with either 2 or 3, because 1 has issues with handling orientation changes and performance issues that won't be fixed until the Mango release at the earliest.
If you mean modal as in a child window, then what you can do is create a canvas that becomes visible when the user clicks on a button. It really is quite an easy solution, but if I have not answered the way you wish let me know, also, there is a great video tutorial site that the XNA website uses: http://channel9.msdn.com/series/windows-phone-7-development-for-absolute-beginners
精彩评论