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

How to style internal step bar?

5 Answers 45 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 13 Nov 2012, 10:22 AM
Hello,
I'm not able to set a color to the internal step bar...
I've attached a picture that shows what I would like to style
Thanks

5 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 14 Nov 2012, 09:14 AM
Hi Paolo,

 Could you please be more specific on your requirement as it is unclear to me? Timebar control doesn't have the vertical axis which is shown on your image.

Greetings,
Evgenia
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michele
Top achievements
Rank 2
answered on 14 Nov 2012, 09:51 AM
Excuse me,
I've a radchart inside the RadTimeBar... I need to set a foreground to those lines...
Thanks
0
Evgenia
Telerik team
answered on 16 Nov 2012, 09:35 AM
Hi Paolo,

 You may review this help topic where it is described together with example how you may use styles to change the default appearance of the Axis Ticks.

Regards,
Evgenia
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michele
Top achievements
Rank 2
answered on 16 Nov 2012, 09:52 AM
I've searched in your RadChartStyle.Xaml but I've not found any AxisYMinorTickStyle...of which part is it of?

Thanks

Paolo
0
Petar Kirov
Telerik team
answered on 20 Nov 2012, 04:40 PM
Hi Paolo,

There is no need to search for the original AxisYMinorTickStyle. Just place your new style in UserControl.Resources for example and tell the corresponding chart element to use it. As shown in the help topic that my colleague Evgenia provided in the previous post, by placing this: 
<Style x:Key="AxisYMinorTickStyle"  TargetType="Line">
  <Setter Property="Stroke" Value="Orange" />
</Style>
 in your resources, and then telling the Y axis to use it for its minor ticks: 
this.radChart.DefaultView.ChartArea.AxisY.AxisStyles.MinorTickLineStyle =
   this.Resources[ "AxisYMinorTickStyle" ] as Style;
you will get orange minor ticks.

I hope this helps.
 
All the best,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TimeBar
Asked by
Michele
Top achievements
Rank 2
Answers by
Evgenia
Telerik team
Michele
Top achievements
Rank 2
Petar Kirov
Telerik team
Share this question
or