Dock Legend proprity in 2009

2 posts, 0 answers
  1. Rajkumar
    Rajkumar avatar
    5 posts
    Member since:
    Sep 2010

    Posted 31 Dec 2010 Link to this post

    Is there any way to set the Legend below the chart(Dock properity in 2010) in 2009 release
  2. Sia
    Sia avatar
    766 posts

    Posted 31 Dec 2010 Link to this post

    Hello Rajkumar,

    You need to change the Template of RadChart and change the Grid.Row of the Chart Legend container. Here is the default template in the old versions of RadChart:

    <Style TargetType="telerikChart:RadChart">
        <Setter Property="Template" >
                <ControlTemplate TargetType="telerikChart:RadChart">
                    <Grid Background="{TemplateBinding Background}">
                        <Grid x:Name="PART_DefaultLayoutGrid">
                                <RowDefinition Height="Auto" />
                                <RowDefinition />
                                <ColumnDefinition />
                                <ColumnDefinition Width="Auto" />
                    Grid.Column="0" />
                            <Border Grid.Row="0"
                                <ContentPresenter x:Name="PART_DefaultChartLegendContainer" />
                        <ContentPresenter />
        <Setter Property="Background" >
                <ImageBrush ImageSource="{StaticResource ImageSource}" />

    All the best,
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top