Back to Devexpress

PaneAnchorPoint.Pane Property

wpf-devexpress-dot-xpf-dot-charts-dot-paneanchorpoint-f6f1225d.md

latest3.0 KB
Original Source

PaneAnchorPoint.Pane Property

Specifies the pane to which the annotation is anchored.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

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

Property Value

TypeDescription
Object

A Pane object specifying the pane to which the annotation is anchored.

|

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

PaneAnchorPoint Class

PaneAnchorPoint Members

DevExpress.Xpf.Charts Namespace