Point Marker Size Width Height

2 posts, 0 answers
  1. Dennis
    Dennis avatar
    2 posts
    Member since:
    Apr 2011

    Posted 23 Sep 2011 Link to this post

    Just in case someone else needs to set size width and height on point marker.  Here's the template.  Found it in documentation but was not here.

            <Style x:Key="MyPointMark_Style" TargetType="t:PointMark">
                <Setter Property="Size" Value="20" />
                <Setter Property="Template">
                        <ControlTemplate TargetType="t:PointMark">
                                <Path x:Name="PART_PointMarkPath"
                                     Canvas.Left="{TemplateBinding PointMarkCanvasLeft}"
                                     Canvas.Top="{TemplateBinding PointMarkCanvasTop}"
                                     Width="{TemplateBinding Size}"
                                     Height="{TemplateBinding Size}"
                                     Style="{TemplateBinding ShapeStyle}"
                                     Fill="{Binding DataItem.Y2S, Converter={StaticResource LocalStatusColorConverter}}"
                                     Stroke="{Binding DataItem.Y2S, Converter={StaticResource LocalStatusColorConverter}}"
                                        <PathGeometry x:Name="PART_PointMarkPathGeometry" />
  2. Evgenia
    Evgenia avatar
    1437 posts

    Posted 28 Sep 2011 Link to this post

    Hello Dennis,

    There is no need of retemplating the PointMark Style just to change the pointmarks size. You can use the Size property like this for example:

    LineSeriesDefinition l = new LineSeriesDefinition();
    l.Appearance.PointMark.Stroke = new SolidColorBrush( Colors.Blue );
    l.Appearance.PointMark.StrokeThickness = 1;
    l.Appearance.PointMark.Size = 12;

    Best wishes,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top