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

How custom the clockstyle ?

3 Answers 95 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
stauder
Top achievements
Rank 1
stauder asked on 28 Mar 2011, 10:50 AM
Hi

I try to change the style of the clock of the RadDateTimePicker.

I try to change it in c# and XAML.

if i don't have other solution, i can accept the actual style exept the title of the clock popup panel (I must change "clock" by "minuteur").

Can you help me ?

3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 31 Mar 2011, 07:53 AM
Hi stauder,

The posted code fragment bellow is the correct approach when you want to change the timepicker header property.

<telerik:RadTimePicker HorizontalAlignment="Center" VerticalAlignment="Center">
                <telerik:RadTimePicker.ClockStyle>
                    <Style TargetType="telerik:RadClock">
                        <Setter Property="telerik:LocalizationManager.ResourceKey" Value="{x:Null}" />
                        <Setter Property="Header" Value="minuteur" />
                    </Style>
                </telerik:RadTimePicker.ClockStyle>
            </telerik:RadTimePicker>


Greetings,
Kaloyan
the Telerik team
0
stauder
Top achievements
Rank 1
answered on 31 Mar 2011, 09:17 AM
Thanks for this response.

It's ok.

My error was to forgotte the order : <Setter Property="telerik:LocalizationManager.ResourceKey" Value="{x:Null}" />"

Again thanks a lot.
0
Kaloyan
Telerik team
answered on 31 Mar 2011, 09:55 AM
Hello stauder,

We may change this behavior as it leads to bit of confusion.

Regards,
Kaloyan
the Telerik team
Tags
DateTimePicker
Asked by
stauder
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
stauder
Top achievements
Rank 1
Share this question
or