Comparison between the toastprompt test demo and coding4fun in Windows Phone development (see the picture and see the truth)

Source: Internet
Author: User
I studied the coding4fun dialog box yesterday and found that it is still too complicated and does not conform to my style. It is simple and low-key. So I took a look at toastprompt, and then made an object-oriented encapsulation.

FirstCodeSegment:

 ///  // message prompt ///  ///  message content  ///  title  ///  prompt the display expiration time of the message. Unit: millisecond  Public void coding4funformsg (string content, String title, int timeout) {solidcolorbrush white = new solidcolorbrush (colors. white); solidcolorbrush Red = new solidcolorbrush (colors. brown); toastprompt toast = new toastprompt {background = red, istimerenabled = true, isappbarvisible = true, millisecondsuntilhidden = timeout, foreground = white,}; toast. title = title; toast. message = content; toast. textorientation = system. windows. controls. orientation. horizontal; toast. show () ;}

Second call:

 
New classes. util. MSG (). coding4funformsg ("this is content", "title", 3000 );

Last(Compared with yesterday's dialog box, it's much more handsome)

This was yesterday's: Click to open the blog article link of yesterday

This is the implementation of the above Code:

Conclusion: The difference is huge and the effect is obvious. Mobile phone display is small, but humanized prompts and operations will win the user experience!

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.