成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Windows Phone 7中英文互翻譯源碼下載

移動開發
本文為大家提供了Windows Phone 7中英文互翻譯的源碼下載,希望對正在學習或者剛剛接觸Windows Phone開發的網友們有所啟發和幫助。

15115614_H7rb.jpg

15115614_vKVA.jpg

XAML:

  1. <phone:PhoneApplicationPage 
  2.     x:Class="WebCPServic.MainPage" 
  3.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  4.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  5.     xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" 
  6.     xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 
  7.     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
  8.     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  9.     mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" 
  10.     FontFamily="{StaticResource PhoneFontFamilyNormal}" 
  11.     FontSize="{StaticResource PhoneFontSizeNormal}" 
  12.     Foreground="{StaticResource PhoneForegroundBrush}" 
  13.     SupportedOrientations="Portrait" Orientation="Portrait" 
  14.     shell:SystemTray.IsVisible="True"> 
  15.  
  16.     <!--LayoutRoot 是包含所有頁面內容的根網格--> 
  17.     <Grid x:Name="LayoutRoot" Background="Transparent"> 
  18.         <Grid.RowDefinitions> 
  19.             <RowDefinition Height="Auto"/> 
  20.             <RowDefinition Height="*"/> 
  21.         </Grid.RowDefinitions> 
  22.  
  23.         <!--TitlePanel 包含應用程序的名稱和頁標題--> 
  24.         <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"> 
  25.             <TextBlock x:Name="ApplicationTitle" Text="WP7開發者:dev.ruanman.net" Style="{StaticResource PhoneTextNormalStyle}"/> 
  26.             <TextBlock x:Name="PageTitle" Text="中英文翻譯" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/> 
  27.         </StackPanel> 
  28.  
  29.         <!--ContentPanel - 在此處放置其他內容--> 
  30.         <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> 
  31.             <TextBlock Height="49" HorizontalAlignment="Left" Margin="12,66,0,0" Name="des" Text="請輸入你需要查詢的英文或中文" VerticalAlignment="Top" Width="284" /> 
  32.             <TextBox Height="72" HorizontalAlignment="Left" Margin="6,106,0,0" Name="No" Text="dev.ruanman.net" VerticalAlignment="Top" Width="415" /> 
  33.             <Button Content="查詢" Height="72" HorizontalAlignment="Left" Margin="12,184,0,0" Name="search" VerticalAlignment="Top" Width="247" Click="search_Click" /> 
  34.             <TextBlock Height="auto"  TextAlignment="Center" HorizontalAlignment="Center" Margin="6,510,0,0" Name="hugwp" Text="www.ruanman.net" VerticalAlignment="Top" Width="444" /> 
  35.             <ListBox Height="242" HorizontalAlignment="Left" Margin="9,262,0,0" Name="listBox1" VerticalAlignment="Top" Width="441" /> 
  36.         </Grid> 
  37.     </Grid> 
  38.  
  39.     <!--演示 ApplicationBar 用法的示例代碼--> 
  40.     <!--<phone:PhoneApplicationPage.ApplicationBar> 
  41.         <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> 
  42.             <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="按鈕 1"/> 
  43.             <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="按鈕 2"/> 
  44.             <shell:ApplicationBar.MenuItems> 
  45.                 <shell:ApplicationBarMenuItem Text="菜單項 1"/> 
  46.                 <shell:ApplicationBarMenuItem Text="菜單項 2"/> 
  47.             </shell:ApplicationBar.MenuItems> 
  48.         </shell:ApplicationBar> 
  49.     </phone:PhoneApplicationPage.ApplicationBar>--> 
  50.  
  51. </phone:PhoneApplicationPage>  

C#:

  1. private void search_Click(object sender, RoutedEventArgs e) 
  2.        { 
  3.  
  4.            //實例化一個web service代理的對象 
  5.  
  6.            EnglishChineseReference.EnglishChineseSoapClient proxy = new EnglishChineseReference.EnglishChineseSoapClient(); 
  7.  
  8.            //getMobileCodeInfo方法調用結束之后 觸發的事件 
  9.  
  10.            proxy.TranslatorStringCompleted += new EventHandler<EnglishChineseReference.TranslatorStringCompletedEventArgs>(proxy_GetIcpInfoByDomainCompleted); 
  11.            //將調用信息包括方法名和參數加入到soap消息中通過http傳送給web service服務端    
  12.  
  13.            //這里對應的是調用了web service的getMobileCodeInfo方法 
  14.  
  15.            proxy.TranslatorStringAsync(No.Text, ""); 
  16.  
  17.        } 
  18.  
  19.        void proxy_GetIcpInfoByDomainCompleted(object sender, EnglishChineseReference.TranslatorStringCompletedEventArgs e) 
  20.        { 
  21.  
  22.            if (e.Error == null
  23.            { 
  24.                try 
  25.                { 
  26.                    this.listBox1.ItemsSource = e.Result; 
  27.  
  28.                } 
  29.                catch (Exception) 
  30.                { 
  31.  
  32.                    MessageBox.Show("網絡出現問題,或者是手機號碼錯誤"); 
  33.                } 
  34.            } 
  35.            else 
  36.            { 
  37.                MessageBox.Show("網絡出現問題,或者是手機號碼錯誤"); 
  38.            } 
  39.        }  

源碼下載:

http://down.51cto.com/data/840237

責任編輯:閆佳明 來源: wpcome
相關推薦

2015-12-01 11:17:41

Windows 10Version 151鏡像

2009-02-18 22:06:38

Windows 7中英文2in1安裝盤

2010-04-08 09:33:05

微軟Bing必應

2015-08-18 15:19:51

2009-03-17 09:52:22

Unicode中英文Python

2013-05-31 00:35:05

2010-04-08 17:40:23

Windows Pho

2010-04-06 09:33:37

CentOS系統

2009-10-20 14:07:00

CCIE必讀書籍

2009-08-13 09:26:14

.NET正則表達式

2010-08-02 14:47:51

Windows PhoWindows PhoWindows Pho

2010-11-26 16:00:08

Windows Pho

2013-07-30 11:18:37

Windows PhoWindows Pho

2011-08-12 10:10:17

2010-05-05 13:16:02

Windows PhoWindows CE

2010-12-21 10:02:48

SilverlightWindows Pho

2011-06-17 14:16:21

ListBoxWindows Pho

2011-04-01 13:20:40

Windows Pho應用程序

2012-05-15 10:05:56

WP7 下載進度

2011-06-08 09:43:15

Windows Pho
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 一区在线视频 | 午夜影院 | 国产精品久久久久久亚洲调教 | 亚洲欧美一区二区三区在线 | 国产精品久久久久久福利一牛影视 | 日韩免费中文字幕 | 国产成都精品91一区二区三 | 色综合av | 国产日韩欧美电影 | 欧美激情五月 | 久久99久久99久久 | 国产一级淫片a直接免费看 免费a网站 | 羞羞的视频网站 | 精品毛片在线观看 | 国产精品久久久久久久久久久久 | 亚洲福利视频网 | 国产欧美一区二区久久性色99 | 亚洲一区亚洲二区 | 免费av手机在线观看 | 午夜视频在线观看网址 | 国产精品久久久久久久毛片 | 91亚洲精选 | 99视频免费看 | 国产欧美视频一区二区 | 久久精品 | 天天爽夜夜操 | 国产欧美一区二区三区久久人妖 | 日韩av大片免费看 | 亚洲人成一区二区三区性色 | 成人高潮片免费视频欧美 | 一区二区三区中文字幕 | 亚洲电影一级片 | 欧美日韩亚洲一区 | 99re国产| 午夜免费网站 | 国产视频在线观看一区二区三区 | 精品蜜桃一区二区三区 | 成人在线中文 | 精品成人av | 国产7777| 精品国产乱码 |