This is a migrated thread and some comments may be shown as answers.

Single column clock with vertical scrollbar

2 Answers 93 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Jace
Top achievements
Rank 1
Jace asked on 22 May 2016, 05:38 AM

Is it possible to make the clock portion as one column with a vertical scrollbar?  Attached is a pic of kind of what I'm looking for.

Thanks...

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 25 May 2016, 02:12 PM
Hello John,

You will need to customize the template of RadClock used to display the hours.  I have attached a sample project to demonstrate how the required look could be achieved. Please take a look at the App.xaml file which contains the modified RadClockStyle, the changes I made are:

- inside ItemsPanelTemplate set the Column property of the RadUniformGrid to "1";
- inside the ControlTemplate added a ScrollVIewer which wraps the ItemsPresenter.

Note that I've used Implicit Styles to set the theme to the DateTimePicker, so you should reference the assemblies from Binaries.NoXaml folder.

Hope this helps.

Regards,
Yana
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Jace
Top achievements
Rank 1
answered on 25 May 2016, 09:10 PM
Very nice! I like it!
Tags
DateTimePicker
Asked by
Jace
Top achievements
Rank 1
Answers by
Yana
Telerik team
Jace
Top achievements
Rank 1
Share this question
or