Skip to main content
A newer version of this page is available. .

AxisCoordinate.Axis Property

Specifies an axis to which the annotation anchor point’s coordinate corresponds.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v19.1.dll

Declaration

public object Axis { get; set; }

Property Value

Type Description
Object

An object of an axis’s View Model class or the Axis2D object.

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

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.

<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