ChartArea.Annotations not available?

2 posts, 0 answers
  1. Erik
    Erik avatar
    43 posts
    Member since:
    Feb 2009

    Posted 15 Feb 2011 Link to this post

    I have the following in my .xaml and it looks like I have everything I need in place, but I'm receiving an error saying "The attachable property 'Annotations' was not found in type 'ChartArea'?
    I'm using the following version of dlls - 2010.1.309.103
    Can anyone see anything wrong or maybe it's just this version of dlls I'm using??

    <UserControl x:Class="lineChartRetry.MainPage"
        xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
        xmlns:chart="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
        xmlns:themingToolkit="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.Toolkit"
        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
        <Grid x:Name="LayoutRoot">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
      
            <Border Style="{StaticResource NumericBorder}">
                <TextBlock x:Name="txtChartValue" TextAlignment="Center" Foreground="#FAAC58" FontSize="14" FontWeight="Bold" FontFamily="Helvetica, sans-serif"></TextBlock>
            </Border>
            <telerikChart:RadChart x:Name="RadChart1" Grid.Row="1" Grid.Column="0">
                <telerikChart:RadChart.DefaultView>
                    <chart:ChartDefaultView>
                        <chart:ChartDefaultView.ChartArea>
                           <chart:ChartArea>
      
                              <chart:ChartArea.Annotations>
                                  <chart:CustomGridLine YIntercept="150" Visibility="Visible" Stroke="Red" StrokeThickness="3" ElementStyle="{StaticResource SolidStyle}"/>
                              </chart:ChartArea.Annotations>
                           </chart:ChartArea>
                        </chart:ChartDefaultView.ChartArea>
                    </chart:ChartDefaultView>
                </telerikChart:RadChart.DefaultView>
            </telerikChart:RadChart>
        </Grid>
    </UserControl>
  2. Missing user
    Missing user avatar

    Posted 17 Feb 2011 Link to this post

    Hi Erik,

    Our records indicate, that you have opened a support ticket on the same issue. To avoid duplicate posts, we can continue our communication in the support ticket in question.

    Kind regards,
    Polina
    the Telerik team
Back to Top