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

Header Periods style (ver: Q2-2012)

1 Answer 35 Views
TimeLine
This is a migrated thread and some comments may be shown as answers.
Rahil Kidwai
Top achievements
Rank 1
Rahil Kidwai asked on 03 Jul 2012, 10:06 PM
I am trying to change the style of header periods of the RadTimeline control.

I am able to change the style of the first row of the header (year display) using implicit style:

    <Style TargetType="timelines:TimelineGroupPeriodControl">
        <Setter Property="Background" Value="LightBlue" />
        <Setter Property="BorderBrush" Value="Gray" />
        <Setter Property="Foreground" Value="Black" />
    </Style>

where "timelines" is referring to namespace:
"clr-namespace:Telerik.Windows.Controls.Timeline;assembly=Telerik.Windows.Controls.DataVisualization"

But I am not able to update the style of the second row of the header (month / week / day display). I tried styling different controls in the above namespace with no success.

Can you tell me which control do I need to style implicitly for this purpose.

Thanks

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 06 Jul 2012, 04:22 PM
Hi Rahil,

I think that you need to style the TimelinePeriodControl. You can do it like this:

<Style TargetType="timelines:TimelinePeriodControl"
               BasedOn="{StaticResource TimelinePeriodControlStyle}">
    <Setter Property="Foreground" Value="Orange" />
</Style>

All the best,
Petar Kirov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
TimeLine
Asked by
Rahil Kidwai
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or