Set size of PointMark objects in LineSeriesDefinition

2 posts, 0 answers
  1. Brian
    Brian avatar
    73 posts
    Member since:
    Sep 2010

    Posted 26 Sep 2013 Link to this post

    I have a SeriesMapping with a SeriesDefinition set to LineSeriesDefinition and would like to set the size of the shapes that used.  I can set the shape via:

    seriesMapping.SeriesDefinition.Appearance.PointMark.Shape = MarkerShape.Circle

    is there any way to also set the size?

    When using a SeriesMapping with a SeriesDefinition of ScatterSeriesDefinition I can set both shape and size like this:

     ((ScatterSeriesDefinition)seriesMapping.SeriesDefinition).PointShape = MarkerShape.Circle;
     ((ScatterSeriesDefinition)seriesMapping.SeriesDefinition).PointSize = 5;

    I would really like to do the same thing with my LineSeriesDefinition...is this possible?

    Tks.

  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 01 Oct 2013 Link to this post

    Hi Brian,

    You can use the PointMarkItemStyle of all series definitions to set the PoinMark size (though this property is not applicable to all series definitions). Here's an example:
    <telerik:LineSeriesDefinition>
        <telerik:LineSeriesDefinition.PointMarkItemStyle>
            <Style TargetType="telerik:PointMark" x:Key="pointMarkItemStyle">
                <Setter Property="Size" Value="50"/>
            </Style>
        </telerik:LineSeriesDefinition.PointMarkItemStyle>
        <telerik:LineSeriesDefinition.Appearance>
            <telerik:SeriesAppearanceSettings >
                <telerik:SeriesAppearanceSettings.PointMark>
                    <telerik:PointMarkAppearanceSettings Shape="Diamond"/>
                </telerik:SeriesAppearanceSettings.PointMark>
            </telerik:SeriesAppearanceSettings>
        </telerik:LineSeriesDefinition.Appearance>
    </telerik:LineSeriesDefinition>

    You can find more information about customizing the PointMarks' appearance here.

    I hope this helps.
     
    Regards,
    Petar Kirov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top