How to change RadClock' s Title?

3 posts, 0 answers
  1. Emiya
    Emiya avatar
    3 posts
    Member since:
    Aug 2011

    Posted 03 Aug 2011 Link to this post

    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. Dani
    Admin
    Dani avatar
    848 posts

    Posted 03 Aug 2011 Link to this post

    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 >>
  3. DevCraft banner
  4. Emiya
    Emiya avatar
    3 posts
    Member since:
    Aug 2011

    Posted 03 Aug 2011 Link to this post

    It works. Thank you very much~~
Back to Top