打开/关闭 Windows Phone 设置 [英] Turn Windows Phone Settings On/Off
问题描述
好的,我需要做的相当简单:能够以编程方式(通过某些 API)打开/关闭系统设置,例如:
OK What I need to do is fairly straightforward : Be able to programmatically (via some API) turn system settings on/off, like :
- 无线网络
- 蓝牙
- 蜂窝
- 调频收音机
关于如何去做的任何想法?(我到处搜索,没有找到任何最新的)
Any ideas on how to go about that? (I've searched everywhere and found nothing up-to-date)
推荐答案
您无法在 Windows Phone 中以编程方式更改它们,但您可以要求用户更改它们并将用户重定向到 Settings
页面(为此使用 ConnectionSettingsTask
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394011(v=vs.105).aspx).
You can't change them programmatically in Windows Phone, 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).
这篇关于打开/关闭 Windows Phone 设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!