• 微软原版系统

  • 一键重装系统

  • 纯净系统

  • 在线技术客服

魔法猪系统重装大师 一键在线制作启动 U 盘 PE 系统 用一键重装的魔法拯救失去灵魂的系统
当前位置:首页 > 教程 > 电脑教程

WindowsPhone7中英文互翻译源码下载

时间:2015年04月02日 15:20:38    来源:魔法猪系统重装大师官网    人气:18530

本文为大家提供了Windows Phone 7中英文互翻译的源码下载,希望对正在学习或者刚刚接触Windows Phone开发的网友们有所启发和帮助。

XAML:

    x:Class="WebCPServic.MainPage" 

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 

    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" 

    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 

    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" 

    FontFamily="{StaticResource PhoneFontFamilyNormal}" 

    FontSize="{StaticResource PhoneFontSizeNormal}" 

    Foreground="{StaticResource PhoneForegroundBrush}" 

    SupportedOrientations="Portrait" Orientation="Portrait" 

    shell:SystemTray.IsVisible="True"> 

     

     

         

             

             

         

         

         

             

             

         

         

         

             

             

             

             

             

         

     

     

     

  

C#:

private void search_Click(object sender, RoutedEventArgs e) 

       { 

           //实例化一个web service代理的对象 

           EnglishChineseReference.EnglishChineseSoapClient proxy = new EnglishChineseReference.EnglishChineseSoapClient(); 

           //getMobileCodeInfo方法调用结束之后 触发的事件 

           proxy.TranslatorStringCompleted += new EventHandler(proxy_GetIcpInfoByDomainCompleted); 

           //将调用信息包括方法名和参数加入到soap消息中通过http传送给web service服务端    

           //这里对应的是调用了web service的getMobileCodeInfo方法 

           proxy.TranslatorStringAsync(No.Text, ""); 

       } 

       void proxy_GetIcpInfoByDomainCompleted(object sender, EnglishChineseReference.TranslatorStringCompletedEventArgs e) 

       { 

           if (e.Error == null) 

           { 

               try 

               { 

                   this.listBox1.ItemsSource = e.Result; 

               } 

               catch (Exception) 

               { 

                   MessageBox.Show("网络出现问题,或者是手机号码错误"); 

               } 

           } 

           else 

           { 

               MessageBox.Show("网络出现问题,或者是手机号码错误"); 

           } 

       }  

Windows Phone 7中英文互翻译源码下载:http://pan.baidu.com/share/link?shareid=1182989426&uk=85241834

WindowsPhone7,中英文,互,翻译,源码下载,本文
栏目:电脑教程 阅读:1000 2023/12/27
Win7教程 更多>>
U盘教程 更多>>
Win10教程 更多>>
魔法猪学院 更多>>

Copyright © 2015-2023 魔法猪 魔法猪系统重装大师

本站发布的系统仅为个人学习测试使用,请在下载后24小时内删除,不得用于任何商业用途,否则后果自负,请支持购买微软正版软件。

在线客服 查看微信 返回顶部