This is a migrated thread and some comments may be shown as answers.
PlotAreaStyle
2 Answers 31 Views
This is a migrated thread and some comments may be shown as answers.
Eyal Ellenbogen
Top achievements
Rank 1
Eyal Ellenbogen asked on 21 Jun 2012, 06:50 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 22 Jun 2012, 08:54 AM
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 >>

0
Eyal Ellenbogen
Top achievements
Rank 1
answered on 22 Jun 2012, 11:27 AM
Thank you!
border it is...

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

Eyal
Tags
Chart
Asked by
Eyal Ellenbogen
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Eyal Ellenbogen
Top achievements
Rank 1
Share this question
or