You can consider utilizing the SelectionChanged
event of the RadDateTimePicker
control and manually add set the StartTime
properties according to the selected hour:
sender, SelectionChangedEventArgs e)
var selectedHour = ((DateTime)e.AddedItems).Hour;
TimeSpan(0, 5, 0);
TimeSpan(selectedHour + 1, 0, 0);
Of course, you might need to further consider the exact approach according to your setup. I suggest you have a look at the following article from our documentation - Clock Items
- as setting a custom ClockItemsSource
should be useful for you.
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer
and share your thoughts!