Custom Point Mark

2 posts, 0 answers
  1. Johnny
    Johnny avatar
    16 posts
    Member since:
    Sep 2009

    Posted 24 Oct 2009 Link to this post

    I am attempting to add a custom point mark - I followed the example in the telerik documentation but the point remains a circle. 
    In xaml:
    <Grid.Resources>
                        <Style x:Name="HorizontalLine" TargetType="Telerik_Windows_Controls_Charting:PointMark">
                            <Setter Property="Size" Value="100" />
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="Telerik_Windows_Controls_Charting:PointMark">
                                        <Canvas>
                                            <Path x:Name="PART_PointMarkPath"
                                               Style="{TemplateBinding ShapeStyle}"  
                                               Width="{TemplateBinding Size}"  
                                               Height="{TemplateBinding Size}"
                                               Stretch="Fill"
                                               Data="F1 M 6.5,3.5 L 3.5,0.5 0.5,3.5 3.5,6.5 0.5,9.5 3.5,12.5 6.5,9.5 9.5,12.5 12.5,9.5 9.5,6.5 12.5,3.5 9.5,0.5 6.5,3.5 Z">
                                            </Path>
                                        </Canvas>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </Grid.Resources>

    In vb.net Code
    seriesData.Add(point)
    seriesData.Definition = New LineSeriesDefinition
    seriesData.Definition.PointMarkItemStyle = Me.HorizontalLine





    For a quick test I even attempted the following code but the point mark still remained a circle. 

    seriesData.Add(point)
    seriesData.Definition = New LineSeriesDefinition
    seriesData.Definition.Appearance.PointMark.Shape = MarkerShape.Triangle

    Any ideas on why the point mark won't change?
  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 28 Oct 2009 Link to this post

    Hello Johnny,

    You can find this implemented in this online example.

    Best regards,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top