Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PaneAnchorPoint.AxisYCoordinate Property

Specifies the Y-axis coordinate for the annotation PaneAnchorPoint.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public AxisYCoordinate AxisYCoordinate { get; set; }

#Property Value

Type Description
AxisYCoordinate

An AxisYCoordinate object specifying the annotation anchor point Y-axis coordinate.

#Remarks

When the Annotation.AnchorPoint property is specified as PaneAnchorPoint, define a particular pane using the PaneAnchorPoint.Pane property. Use the PaneAnchorPoint.AxisXCoordinate and PaneAnchorPoint.AxisYCoordinate properties to configure the anchor point’s x- and y-coordinates. Then, set the AxisCoordinate.Axis and AxisCoordinate.AxisValue properties for each axis coordinate.

#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>
See Also