Greetings:
If I add a collection of valid time values using the ClockItemsSource property, how can I make the TimePicker only consider the added times as valid? For example, if I add the times 8:00 AM, 11:00 AM and 2:00 PM, I consider all times except those three times as invalid data. Yet the user can type the value 123 and the control will accept the time 12:03 PM without question.
I would like to simply set the TextBox portion of the TimePicker to read-only. This way I would have complete control over valid values by letting the user select them from the dropdown. Can this be done? If not, can you recommend an easy way to prevent the user from entering invalid times?
Thank you,
KO
If I add a collection of valid time values using the ClockItemsSource property, how can I make the TimePicker only consider the added times as valid? For example, if I add the times 8:00 AM, 11:00 AM and 2:00 PM, I consider all times except those three times as invalid data. Yet the user can type the value 123 and the control will accept the time 12:03 PM without question.
I would like to simply set the TextBox portion of the TimePicker to read-only. This way I would have complete control over valid values by letting the user select them from the dropdown. Can this be done? If not, can you recommend an easy way to prevent the user from entering invalid times?
Thank you,
KO