Back to Devexpress

PaneAnchorPoint Class

wpf-devexpress-dot-xpf-dot-charts-09cd9c45.md

latest3.0 KB
Original Source

PaneAnchorPoint Class

Settings that indicate the Annotation is anchored to a pane.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public class PaneAnchorPoint :
    AnnotationAnchorPoint,
    IWeakEventListener
vb
Public Class PaneAnchorPoint
    Inherits AnnotationAnchorPoint
    Implements IWeakEventListener

Remarks

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.

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>

Inheritance

Object DispatcherObject DependencyObject Freezable ChartDependencyObject AnnotationAnchorPoint PaneAnchorPoint

See Also

PaneAnchorPoint Members

DevExpress.Xpf.Charts Namespace