In previous versions, there used to be a ClockPanel property to customize the drop-down clock panel. In the newest version, this is marked as deprecated. But there is no or little information on how to use the new ClockStyle property.
I'm looking to change the number of columns in the drop-down ClockPanel dynamically.
Old code:
It is my understanding the the new code would look something like this:
But this example doesn't work. The dropdown list simply refuses to show. Can you provide an example of a working ClockStyle that lets you set the displayed number of columns?
I'm looking to change the number of columns in the drop-down ClockPanel dynamically.
Old code:
<
telerik:RadTimePicker
x:Name
=
"stopTime"
>
<
telerik:RadTimePicker.ClockPanel
>
<
ItemsPanelTemplate
>
<
panels:RadUniformGrid
x:Name
=
"stopTimePanel"
Columns
=
"6"
/>
</
ItemsPanelTemplate
>
</
telerik:RadTimePicker.ClockPanel
>
</
telerik:RadTimePicker
>
It is my understanding the the new code would look something like this:
<
telerik:RadTimePicker
x:Name
=
"stopTime"
>
<
telerik:RadTimePicker.ClockStyle
>
<
Style
TargetType
=
"telerik:RadClock"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
>
<
panels:RadUniformGrid
x:Name
=
"stopTimePanel"
Columns
=
"2"
/>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerik:RadTimePicker.ClockStyle
>
</
telerik:RadTimePicker
>
But this example doesn't work. The dropdown list simply refuses to show. Can you provide an example of a working ClockStyle that lets you set the displayed number of columns?