與眾不同windows phone (4) Launcher(啟動器)

來源:互聯網
上載者:User

介紹

與眾不同 windows phone 7.5 (sdk 7.1) 之啟動器

ConnectionSettingsTask - 導航到指定的系統設定頁

PhoneCallTask - 呼出電話

SmsComposeTask - 發簡訊

EmailComposeTask - 發電子郵件

WebBrowserTask - 開啟瀏覽器

SearchTask - 開啟搜尋網頁

ShareLinkTask - 分享連結到指定的社交網路

ShareStatusTask - 分享狀態到指定的社交網路

MarketplaceHubTask - 開啟商店 Hub

MarketplaceSearchTask - 在商店搜尋

MarketplaceDetailTask - 開啟商店某 App 的詳細頁

MarketplaceReviewTask - 評價當前應用程式

BingMapsTask - Bing 地圖

BingMapsDirectionsTask - Bing 地圖行車路線

MediaPlayerLauncher - 開啟媒體播放器

樣本

1、ConnectionSettingsTask 的 Demo

ConnectionSettingsTask.xaml.cs

/*  * ConnectionSettingsTask - 導航到指定設定頁  *     ConnectionSettingsType - 設定頁的類別  *         ConnectionSettingsType.WiFi - WiFi 設定  *         ConnectionSettingsType.Bluetooth - 藍芽設定  *         ConnectionSettingsType.Cellular - 行動電話通訊設定  *         ConnectionSettingsType.AirplaneMode - 飛航模式設定  *     Show() - 導航到指定設定頁  */   using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using Microsoft.Phone.Controls;    using Microsoft.Phone.Tasks;    namespace Demo.Launchers {     public partial class ConnectionSettingsTaskDemo : PhoneApplicationPage     {         public ConnectionSettingsTaskDemo()         {             InitializeComponent();         }            private void btnWiFi_Click(object sender, RoutedEventArgs e)         {             ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();             connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.WiFi;             connectionSettingsTask.Show();         }            private void btnBluetooth_Click(object sender, RoutedEventArgs e)         {             ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();             connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.Bluetooth;             connectionSettingsTask.Show();         }            private void btnCellular_Click(object sender, RoutedEventArgs e)         {             ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();             connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.Cellular;             connectionSettingsTask.Show();         }            private void btnAirplaneMode_Click(object sender, RoutedEventArgs e)         {             ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();             connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.AirplaneMode;             connectionSettingsTask.Show();         }     } }

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.