HomeWindowsHow to enable or disable Wifi in Windows Phone using C# ?

How to enable or disable Wifi in Windows Phone using C# ?

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

How to enable or disable Wifi in Windows Phone using C# ?

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

Yo use the launcher , use the namespace Microsoft.Phone.Tasks;

private void button1_Click(object sender, RoutedEventArgs e)
{
ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.WiFi;
connectionSettingsTask.Show();
}

    2 Comments

  1. martin
    February 15, 2012
    Reply

    Can you open the location settings in a similar manner??

  2. User Avatar
    February 16, 2012
    Reply

    Currently , thats not possible

Leave a Reply

You May Also Like

This blog post will guide you through several effective methods to troubleshoot and resolve the issue of Microsoft Edge not...
Windows 11 offers a range of audio enhancements that can enrich your listening experience. These enhancements include features like virtual...
Windows 11 brings a fresh and visually stunning design to your desktop, and one of the standout features is the...