If you are a Developer and have an task to change or access the Bluetooth Settings via some user interaction , you can use the Launcher “ConnectionSettingsTask” to achieve it.

Just use the ConnectionSettingsType to Bluetooth and call the show method of the ConnectionSettingsTask . This will Launch the Bluetooth Settings Window and lets the user to change the Bluetooth settings or even enable or disable the Bluetooth.

You use the Launcher , use the namespace Microsoft.Phone.Tasks;

private void LaunchBluetoothSettingsForm()
{
   ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
   connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.Bluetooth;
   connectionSettingsTask.Show();
}

 

via WindowsPhoneRocks.com

Share