Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have added two toggleswitches from silverlite toolkit to enable and disable the data cannection and wifi. everything is perfect but i just dont know how to link them to phone setting so data connection and wifi actually gets enabled and disabled.???
Posted

1 solution

Use Microsoft.Phone.Tasks and call the launcehr like..
C#
ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
	connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.WiFi;
	connectionSettingsTask.Show();

And for rest check it..
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh487166%28v=vs.105%29.aspx[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900