I am use the RadChart in a CustomControl which used to work in the 2009 version of the control. Now that I have upgraded the controls to the 2010 Q3 SP1 version the control no longer works.
The problem is that - looking in snoop - the control has no visual tree. I have reduced the generic style to the following;
<Style TargetType="{x:Type asc:CustomControl1}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type asc:CustomControl1}">
<Grid>
<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" >
<GradientStop Color="#FFDCE7FD" Offset="1"/>
<GradientStop Color="#FF898AAC" Offset="0"/>
</LinearGradientBrush>
</Grid.Background>
<telerik:RadChart x:Name="PART_AscChart" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
The piece which I believe causes the problem is that the assemblies are loaded through a custom assembly loader at runtime, so I suspect that the generic style for RadChart is not being located.
Any ideas would be appreciated.
Thanks
Kendrew
The problem is that - looking in snoop - the control has no visual tree. I have reduced the generic style to the following;
<Style TargetType="{x:Type asc:CustomControl1}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type asc:CustomControl1}">
<Grid>
<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" >
<GradientStop Color="#FFDCE7FD" Offset="1"/>
<GradientStop Color="#FF898AAC" Offset="0"/>
</LinearGradientBrush>
</Grid.Background>
<telerik:RadChart x:Name="PART_AscChart" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
The piece which I believe causes the problem is that the assemblies are loaded through a custom assembly loader at runtime, so I suspect that the generic style for RadChart is not being located.
Any ideas would be appreciated.
Thanks
Kendrew