如何以编程方式打开Windows Phone 8上的日期/时间设置? [英] How to open the Date/Time settings on Windows Phone 8 programmatically?

查看:83
本文介绍了如何以编程方式打开Windows Phone 8上的日期/时间设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的应用程序依赖于正确的日期/时间被设置为同步目的。显然您无法以编程方式设置手机上的日期和时间。有没有办法以编程方式打开日期/时间设置?

The app I'm working on relies on the correct date/time being set for synchronization purposes. Apparently you cannot programmatically set the date and time on the phone. Is there a way though to open the Date/Time settings programmatically?

推荐答案

感谢您清理。我不认为你可以这样做。

Thanks for clearing that up. I don't think you can do this the way you want to.

从此链接


最好你可以得到用户时钟和程序所在系统上的时钟之间的区别。当然用户的时钟可能会改变。我不认为人们经常更换时钟,但仍然需要考虑。

At best you can get the difference between the user's clock and the clock on the system to which the program is talking. Of course the user's clock is subject to change. I don't think that people change their clock's time very frequently, but it is still something to be considered.

您可以启动一些设置如下:

You can launch some settings programatically like this:

Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings-bluetooth:"));

但是日期/时间不是其中之一。 here 是一个链接到可用设置

But date/time is not one of them. here is a link to available settings

这篇关于如何以编程方式打开Windows Phone 8上的日期/时间设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆