The current Silverlight for Windows Phone does not support childwindow, so when we want to pop up some windows, we can only find a solution.
The first method is MessageBox, which is quite simple. You can also add some styles to it.
The second method is to view the definition of childwindow in Silverlight (ilspy or reflector decompilation is recommended)
The third method is to use the popup control to simulate childwindow.
The fourth method is to use the existing class library, such as the famous coding4fun, which has a lot of pretty popup (a bit similar to the third method)
Method 5: It's up to u!
1. Use MessageBox
This method is the simplest and provides the most concise interface. The usage is as follows:
MessageBox. Show ("with caption", "caption", messageboxbutton. okcancel );
MessageBox. Show ("Hello word ");
Ii. Use the Custom User control as the pop-up window
Reference http://blog.toetapz.com/2010/11/02/how-to-use-popup-or-childwindow-in-windows-phone-to-display-buy-now-screen-2/
Http://wildermuth.com/2010/08/17/Using_ChildWindow_in_Windows_Phone_7_Projects
3. Use popup
The principle is to place a popup in the page, place another page in it, refer to http://www.cnblogs.com/salam/archive/2010/12/27/1917919.html
4. Use the coding4fun Control
Codeplex has a pretty good WP7 control library, coding4fun, which provides many message-prompting controls:
About the prompt box, message box, toast prompt box, circle button, color selector, memory counter, etc. How can we use this control in our WP7 project? It's easy to directly reference the DLL to our project.
This section describes how to use the coding4fun control function to generate an instance of this object and view its attributes, such as aboutprompt and passwordinputprompt.
As you can see, the attributes that can be set in the about message box include body, footor, and title.
Coding4fun not only provides message boxes, but also provides some common converters and textbox binding help classes (used for binding input text boxes)
5. It's up to u!
PS: This articleArticleIt has been put in the draft box for more than January years. Today, I have made some preparations and published it...