2016-03-16 89 views
0

我正在開發Windows 10 WPF應用程序,我正在使用32feet.net來解決藍牙問題。現在我面臨的一個問題就是通過編程關閉/打開藍牙,所以我找到的替代方法是從我的WPF應用程序訪問「Action Center」,然後關閉/打開藍牙。 所以我的問題是,我將如何能夠從我的WPF應用程序訪問我選擇的頁面?如何從WPF應用程序打開藍牙設置?

我也必須關閉位置,如果我的應用程序允許我打開位置頁面目前在設置 - >與隱私>位置行動中心這將是巨大的。

任何幫助,應當理解

回答

0
ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = Environment.ExpandEnvironmentVariables(@"%localappdata%\Packages\windows.immersivecontrolpanel_cw5n1h2txyewy\LocalState\Indexed\Settings\en-US\AAA_SettingsPagePCSystemBluetooth.settingcontent-ms"); startInfo.UseShellExecute = true; Process.Start(startInfo);