WP7 TimePicker 选择 24 小时格式的时间 [英] WP7 TimePicker choose time in 24h format

查看:38
本文介绍了WP7 TimePicker 选择 24 小时格式的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让 WP7 的 TimePicker 允许用户选择 24 小时格式的时间?如果我将 TimePicker.ValueStringFormat 设置为{0:HH:mm:ss}",它会以 24 小时格式显示,但是当我单击它时,输入时间仍然是 12 小时格式(带有 AM/PM).可以将 TimePicker 配置为使用 AM/PM 滚动 0-23 而不是 1-12?

Is there a way to get WP7's TimePicker to allow the user to select the time in 24 hour format? If I set TimePicker.ValueStringFormat to "{0:HH:mm:ss}" it displays in 24h format, but when I click it the input time is still 12h format (with AM/PM). Can TimePicker be configured to scroll 0-23 instead of 1-12 with AM/PM?

推荐答案

这里你可以找到一个可以提供帮助的链接:但是我注意到现在 timePicker 会根据手机的日期时间设置自动处理 12-24 小时的转换!

Here you can find a link that can help: however I notice that now the timePicker handle the 12-24 hours conversion authomatically depending on the phone date-time setting!

这篇关于WP7 TimePicker 选择 24 小时格式的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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