PaneAnchorPoint Class
Settings that indicate the Annotation is anchored to a pane.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.1.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
Remarks
To anchor an annotation to the required pane, specify the PaneAnchorPoint.Pane property. Then, define the axes and their values to specify the anchor point using the PaneAnchorPoint.AxisXCoordinate and PaneAnchorPoint.AxisYCoordinate properties.
Example
This example shows how to anchor an annotation to a pane.
- Specify the PaneAnchorPoint.Pane property to define a pane to which the annotation should be anchored.
Define the axes and their values to specify the annotation’s anchor point. To do this, use the PaneAnchorPoint.AxisXCoordinate and PaneAnchorPoint.AxisYCoordinate properties.
If the PaneAnchorPoint.Pane and AxisCoordinate.Axis properties are unspecified, the default pane and primary axes are used to display the annotation. You can leave the Pane and Axis properties undefined if you plot the annotation on the default pane with primary axes.
<dxc:Annotation.AnchorPoint>
<dxc:PaneAnchorPoint Pane="{Binding ElementName=defaultPane}">
<dxc:PaneAnchorPoint.AxisXCoordinate>
<dxc:AxisXCoordinate Axis="{Binding ElementName=xAxis}"
AxisValue="2.85"/>
</dxc:PaneAnchorPoint.AxisXCoordinate>
<dxc:PaneAnchorPoint.AxisYCoordinate>
<dxc:AxisYCoordinate Axis="{Binding ElementName=yAxis}"
AxisValue="-30"/>
</dxc:PaneAnchorPoint.AxisYCoordinate>
</dxc:PaneAnchorPoint>
</dxc:Annotation.AnchorPoint>