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

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

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;


If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply


Interesting BlogPosts to read

Download - Pokemon Go for for Windows 10 (Third Party app)
Pokemon Go is one of the popular AR games for android and iOS devices and now , the game is made ava...
Open Wordpad from command line in Windows
You can use the command "Write" from command line in Windows to open the WordPad application.D:\>...
Popular cross-platform (android and iOS) to-do list app
In this blog post, we will cover some of the popular to-do list app that is available on different p...