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

AxisXCoordinate Class

The settings that define the annotation anchor point X-axis coordinate.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public class AxisXCoordinate :
    AxisCoordinate

The following members return AxisXCoordinate objects:

#Remarks

If the Annotation.AnchorPoint property is specified as PaneAnchorPoint, define a required pane to which an annotation is anchored using the PaneAnchorPoint.Pane property. Assign the required AxisXCoordinate and AxisYCoordinate objects to the PaneAnchorPoint.AxisXCoordinate and PaneAnchorPoint.AxisYCoordinate properties.

X_Y_Coordinates

#Example

This example shows how to anchor an annotation to a pane.

<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