Customize intervals

3 posts, 1 answers
  1. Amige
    Amige avatar
    44 posts
    Member since:
    Dec 2013

    Posted 26 Mar 2015 Link to this post

    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. Answer
    Martin
    Admin
    Martin avatar
    1101 posts

    Posted 27 Mar 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Amige
    Amige avatar
    44 posts
    Member since:
    Dec 2013

    Posted 28 Mar 2015 in reply to Martin Link to this post

    Hello Martin,

    Thanks a lot for your help.

    Regards,

    Alberto
Back to Top