2

But in such a way that there is absolutely NO TRANSMISSION out of it? No searching for hotspots nor any keepalives or any other transmission?

Thank you very much, Yaron.

Yaron Adler
  • 492
  • 1
  • 5
  • 15

3 Answers3

0

You can check the How to use the connection settings task for Windows Phone 8. You can use the

var navigate = Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings-location:"));

which will navigate you to the settings page where you can turn off and on the wifi settings.

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
0

You can't change them programmatically, but you can ask a user to change them and redirect a user to the Settings page (for this purpose use ConnectionSettingsTask http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394011(v=vs.105).aspx).

This is because the platform leaves these kinds of settings in the user's control at all times.

ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.WiFi;
connectionSettingsTask.Show();

The closest you can get is to programmatically launch the WiFi settings page where the user can modify the setting:

await Launcher.LaunchUriAsync(new Uri("ms-settings-wifi:"));
Krunal Mevada
  • 1,637
  • 1
  • 17
  • 28
0

In Windows 10 you can use this API

There is a sample of its usage published by Microsoft here

alexcalibur
  • 384
  • 1
  • 7