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

How to change RadClock' s Title?

2 Answers 98 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Emiya
Top achievements
Rank 1
Emiya asked on 03 Aug 2011, 06:25 AM
I have used a RadDateTimePicker in my project, and InputMode is "TimePicker". When I chick on it, a time panel was shown, title is "Clock".
Now, my question is, how can I custom this title? I want to change it to "My Clock".


my email: tanxx@e-glad.com.cn


Thanks
Emiya Tan
2011/08/03

2 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 03 Aug 2011, 09:46 AM
Hi Emiya,

The most simple way to do that is:

<UserControl.Resources>
            <Style x:Key="ClockStyle" TargetType="telerik:RadClock">
                <Setter Property="telerik:LocalizationManager.ResourceKey" Value="{x:Null}"/>
                <Setter Property="Header" Value="My Clock" />
            </Style>
    </UserControl.Resources>
  
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadDateTimePicker Margin="188,112,176,0" VerticalAlignment="Top" InputMode="TimePicker" ClockStyle="{StaticResource ClockStyle}"/>
    </Grid>

I hope this helps.

Regards,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Emiya
Top achievements
Rank 1
answered on 03 Aug 2011, 09:49 AM
It works. Thank you very much~~
Tags
DateTimePicker
Asked by
Emiya
Top achievements
Rank 1
Answers by
Dani
Telerik team
Emiya
Top achievements
Rank 1
Share this question
or