打开/关闭Windows Phone设置 [英] Turn Windows Phone Settings On/Off
本文介绍了打开/关闭Windows Phone设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好,我需要做的很简单:能够以编程方式 (通过某些API)打开/关闭系统设置,例如:
OK What I need to do is fairly straightforward : Be able to programmatically (via some API) turn system settings on/off, like :
- WiFi
- 蓝牙
- 手机
- FM广播
关于如何实现此目标的任何想法?(我到处搜索,没有发现任何最新信息)
Any ideas on how to go about that? (I've searched everywhere and found nothing up-to-date)
推荐答案
您无法在Windows Phone中以编程方式更改它们,但可以要求用户更改它们并将用户重定向到设置
页面(为此目的,请使用 ConnectionSettingsTask
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屋!
查看全文