Windows Phone pop-up window

Source: Internet
Author: User

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...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.