How to style internal step bar?

6 posts, 0 answers
  1. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 13 Nov 2012 Link to this post

    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
  2. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 14 Nov 2012 Link to this post

    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.

  3. DevCraft banner
  4. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 14 Nov 2012 Link to this post

    Excuse me,
    I've a radchart inside the RadTimeBar... I need to set a foreground to those lines...
    Thanks
  5. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 16 Nov 2012 Link to this post

    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.

  6. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 16 Nov 2012 Link to this post

    I've searched in your RadChartStyle.Xaml but I've not found any AxisYMinorTickStyle...of which part is it of?

    Thanks

    Paolo
  7. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 20 Nov 2012 Link to this post

    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.

Back to Top
DevCraft banner