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

Style for RadChart ?

1 Answer 50 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Aurélien Dubosson
Top achievements
Rank 1
Aurélien Dubosson asked on 06 May 2010, 08:09 AM

I wish to set a property the C# property of a Chart object :

Chart.DefaultView.ChartArea.AxisX.DefaultLabelFormat ="dd mm aa";

but I will to do this with the styles in Silverlight :

<Application.Resources>
       
<Style x:Key="myStyle" TargetType="telerikCharting:RadChart"> ...

but I cannot make a :

<Setter Property="DefaultView.ChartArea.AxisX.DefaultLabelFormat" Value="dd.MM.yy hh:mm:ss">

It doesn't work.

Anyone have an idea ?

Thanks in advance.

Narglix

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 11 May 2010, 09:21 AM
Hi Aurélien Dubosson,

XAML doesn't support this syntax. It is a declarative language and you need to create an instance for each object in the change in order to access the property. Take a look at the XAML code in this example for more information.

Best wishes,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
Aurélien Dubosson
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or