介紹
與眾不同 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(); } } }