Back to Devexpress

AxisCoordinate.Axis Property

wpf-devexpress-dot-xpf-dot-charts-dot-axiscoordinate.md

latest3.1 KB
Original Source

AxisCoordinate.Axis Property

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

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
[DXDesignerSerializableProperty]
public object Axis { get; set; }
vb
<DXDesignerSerializableProperty>
Public Property Axis As Object

Property Value

TypeDescription
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

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

xaml
<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

AxisCoordinate Class

AxisCoordinate Members

DevExpress.Xpf.Charts Namespace