PlotAreaStyle

3 posts, 1 answers
  1. Eyal Ellenbogen
    Eyal Ellenbogen avatar
    11 posts
    Member since:
    Jul 2009

    Posted 21 Jun 2012 Link to this post

    Hi,

    I am trying the 2012 Q2 version for SL5. I'm using the RadCartesianChart and everything works well except styling. I can't seem to figure out how to style the the plotarea. I've tried playing around with PlotAreaStyle and adding styles to it but it keeps throwing a general exception about not being able to set the style of the framework element. I was looking for examples on how to do it in the examples section on the site but there's nothing about it.

    Basically, what i want is to change the background of it. I could do that by just putting a grid in the background and play with that, but I also want to know when the size changes etc. I would rather get access to the PlotAreaTemplate/Style and play with that. Is that possible?

    Also, where can I get the full template xaml of the chart? 

    Thanks,
    Eyal
  2. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 22 Jun 2012 Link to this post

    Hi Eyal,

    Make sure that you have set a target type:
    <telerik:RadCartesianChart>       
     <telerik:RadCartesianChart.PlotAreaStyle>
      <Style TargetType="Border">
       <Setter Property="Background" Value="Gray" />

    For the full template of the chart check out your Telerik instalation folder in Program files and look for the Themes folder.

    Greetings,
    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Eyal Ellenbogen
    Eyal Ellenbogen avatar
    11 posts
    Member since:
    Jul 2009

    Posted 22 Jun 2012 Link to this post

    Thank you!
    border it is...

    and thank you for pointing to the folder.. that is really helpful! :)

    Eyal
Back to Top