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

Customize intervals

2 Answers 24 Views
TimeLine
This is a migrated thread and some comments may be shown as answers.
Amige
Top achievements
Rank 1
Veteran
Amige asked on 26 Mar 2015, 04:25 PM
Hello,

I see the Timeline control has alternate colors for the intervals, Is it possible to change those colors? I'd like to change them.

Thanks in advance,

Alberto

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 27 Mar 2015, 06:51 AM
Hi Alberto,

You can change the colors of the strip lines by using implicit style that targets the TimelineStripLineControl element and its NormalStyle, and AlternateStyle properties. Here is an example:
<Window.Resources>
    <Style TargetType="Border" x:Key="normalStyle">
        <Setter Property="Background" Value="#F67E4B" />
    </Style>
 
    <Style TargetType="Border" x:Key="alternateStyle">
        <Setter Property="Background" Value="#FCE4C2" />
    </Style>
 
    <Style TargetType="telerik:TimelineStripLineControl">
        <Setter Property="NormalStyle" Value="{StaticResource normalStyle}" />
        <Setter Property="AlternateStyle" Value="{StaticResource alternateStyle}" />
    </Style>
</Window.Resources>
You can take a look at the Change the periods strip lines background help article which demonstrates this approach.

Regards,
Martin
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Amige
Top achievements
Rank 1
Veteran
answered on 28 Mar 2015, 07:44 PM
Hello Martin,

Thanks a lot for your help.

Regards,

Alberto
Tags
TimeLine
Asked by
Amige
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Amige
Top achievements
Rank 1
Veteran
Share this question
or