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

RadChart - Styling DefaultView

1 Answer 87 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Doug
Top achievements
Rank 1
Doug asked on 07 Jul 2011, 09:15 PM
It seems although the subject property is a dependency property that we can't create template bindings for it in the RadChart style like the following - is this corect?

<Grid.Resources>

 

 

 

 

<Style x:Key="MyChartStyle" TargetType="Telerik:RadChart">

 

 

<Setter Property="DefaultView">

 

 

<Setter.Value>

 

 

<Telerik:ChartDefaultView x:Name="MyDefaultView" ChartLegendPosition="Bottom">

 

 

<Telerik:ChartDefaultView.ChartLegend>

 

 

<Telerik:ChartLegend Name="legend" Visibility="Visible" />

 

 

</Telerik:ChartDefaultView.ChartLegend>

 

 

<Telerik:ChartDefaultView.ChartArea>

 

 

<Telerik:ChartArea LegendName="legend" Margin="0 0 0 0" EnableAnimations="False" >

 

 

<Telerik:ChartArea.ZoomScrollSettingsX>

 

 

<Telerik:ZoomScrollSettings ScrollMode="None" />

 

 

</Telerik:ChartArea.ZoomScrollSettingsX>

 

 

<Telerik:ChartArea.ZoomScrollSettingsY>

 

 

<Telerik:ZoomScrollSettings ScrollMode="None" />

 

 

</Telerik:ChartArea.ZoomScrollSettingsY>

 

 

 

<Telerik:ChartArea.Extensions>

 

 

<Telerik:CameraExtension />

 

 

</Telerik:ChartArea.Extensions>

 

 

<Telerik:ChartArea.AxisY>

 

 

<Telerik:AxisY AutoRange="True" />

 

 

</Telerik:ChartArea.AxisY>

 

 

 

<Telerik:ChartArea.AxisX>

 

 

<Telerik:AxisX LabelRotationAngle="45" />

 

 

</Telerik:ChartArea.AxisX>

 

 

</Telerik:ChartArea>

 

 

</Telerik:ChartDefaultView.ChartArea>

 

 

</Telerik:ChartDefaultView>

 

 

</Setter.Value>

 

 

</Setter>

 

 

</Style>

 

 

</Grid.Resources>

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 13 Jul 2011, 01:24 PM
Hello Doug,

Unfortunately I confirm that such scenario is not possible at the moment. Please excuse us for the inconvenience caused and find your telerik points updated. You can track the issue's progress here.

Best wishes,
Sia
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Chart
Asked by
Doug
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or