本文介绍了限制TimePicker中的可选时间值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 是否可以限制TimePicker控件提供的时间值? 用例是 - 如果我希望用户从一组可用中选择从时间选择器预约时间段,我只想显示某一天可用的时间。 在我看来,我需要使用ComboBox,但我认为我会问是否有某种方法可以使用TimePicker控件。 解决方案 Is it possible to restrict the time values that are presented by the TimePicker control ?The use case is - If I wanted the user to pick from a set of available appointment time slots from a time picker, I'd like to show only the times that are available on a given day. It seems to me that I need to use a ComboBox instead but I thought I'd ask if there was some way to use the TimePicker control. 解决方案 这篇关于限制TimePicker中的可选时间值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-19 23:24