How custom the clockstyle ?

4 posts, 0 answers
  1. stauder
    stauder avatar
    9 posts
    Member since:
    Dec 2010

    Posted 28 Mar 2011 Link to this post

    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 ?
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 31 Mar 2011 Link to this post

    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
  3. DevCraft banner
  4. stauder
    stauder avatar
    9 posts
    Member since:
    Dec 2010

    Posted 31 Mar 2011 Link to this post

    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.
  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 31 Mar 2011 Link to this post

    Hello stauder,

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

    Regards,
    Kaloyan
    the Telerik team
Back to Top