Show ScrollViewer for the Time Display Items of RadDateTimePicker
Environment
Product Version | 2019.1.116 |
Product | RadDateTimePicker for WPF |
Description
How to show a vertical scrollbar in the time section of the drop down.
Solution
- Extract the ControlTemplate of RadClock.
- Wrap the ItemsPresenter control of the template in a ScrollViewer control.
- Create a Style targeting RadClock and define a Setter that sets the Template property to the customized ControlTemplate.
- Apply the Style via the ClockStyle property of RadDateTimePicker.
This template is extracted from the OfficeBlack theme.