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:
                        <Style x:Name="HorizontalLine" TargetType="Telerik_Windows_Controls_Charting:PointMark">
                            <Setter Property="Size" Value="100" />
                            <Setter Property="Template">
                                    <ControlTemplate TargetType="Telerik_Windows_Controls_Charting:PointMark">
                                            <Path x:Name="PART_PointMarkPath"
                                               Style="{TemplateBinding ShapeStyle}"  
                                               Width="{TemplateBinding Size}"  
                                               Height="{TemplateBinding Size}"
                                               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">

    In Code
    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.Definition = New LineSeriesDefinition
    seriesData.Definition.Appearance.PointMark.Shape = MarkerShape.Triangle

    Any ideas on why the point mark won't change?
  2. Ves
    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,
    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