Back to Devexpress

How to: Dock an Annotation to a Series Point

wpf-116108-controls-and-libraries-charts-suite-chart-control-examples-chart-elements-how-to-dock-an-annotation-to-a-series-point.md

latest731 B
Original Source

How to: Dock an Annotation to a Series Point

  • Jun 07, 2019

This example demonstrates how to anchor an annotation to a series point.

To do this, specify the SeriesPointAnchorPoint.SeriesPoint property.

xaml
<dxc:Annotation Content="Annotation #1">
    <dxc:Annotation.AnchorPoint>
        <dxc:SeriesPointAnchorPoint SeriesPoint="{Binding ElementName=seriesPoint}"/>
    </dxc:Annotation.AnchorPoint>
    <dxc:Annotation.ShapePosition>
        <dxc:RelativePosition Angle="60" 
                              ConnectorLength="50"/>
    </dxc:Annotation.ShapePosition>
</dxc:Annotation>