Tasks in Microsoft. Phone. Tasks developed in Windows Phone 7

Source: Internet
Author: User
// Phonecalltask: Call Private void btnphonecall_click (Object sender, routedeventargs e) {phonecalltask task = new phonecalltask (); task. phonenumber = "110"; task. displayname = ""; task. show () ;}// smscomposetask: Send the SMS private void btncomposesms_click (Object sender, routedeventargs e) {smscomposetask task = new smscomposetask (); task. to = "110"; task. body = "Hello !. "; Task. show ();} // emailcomposetask: send the email emailcomposetask task = new emailcomposetask (); task. to = "252456098@qq.com"; task. cc = "ycproc@163.com"; task. subject = "test"; task. body = "Hello world! "; Task. show (); // webbrowsertask: Open the web browser private void btnlaunchwebbrowser_click (Object sender, routedeventargs e) {webbrowsertask task = new webbrowsertask (); task. url = "http://blog.csdn.net/fengyarongaa"; task. show () ;}// searchtask: search function private void btnlaunchsearch_click (Object sender, routedeventargs e) {searchtask task = new searchtask (); task. searchquery = "sub"; task. show () ;}// mediaplayerlauncher: Start the Media Player mediaplayerlauncher task = new mediaplayerlauncher (); task. media = new uri (@ "http://ecn.channel9.msdn.com/o9/learn/videos/Silverlight4-SL4BusinessModule1-SL4LOB_01_01_Introduction/Silverlight4-SL4BusinessModule1-SL4LOB_01_01_Introduction_kit.wmv"); task. show ();

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.