IDockTarget Interface

An interface that should be implemented by any object which can serve as a dock target.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public interface IDockTarget

The following members accept/return IDockTarget objects:

Library Related API Members
WPF Controls CrosshairFreePosition.DockTarget
FreePosition.DockTarget
ToolTipFreePosition.DockTarget
Silverlight Controls CrosshairFreePosition.DockTarget
ToolTipFreePosition.DockTarget

Example

This example demonstrates how to customize the annotation layout when the Annotation.ShapePosition property is specified as the FreePosition type.

To do this, dock the annotation to the required element using the FreePosition.DockTarget property. Then, specify the FreePosition.VerticalAlignment and FreePosition.HorizontalAlignment properties, to configure the annotation position.

View Example

<dxc:Annotation.ShapePosition>
    <dxc:FreePosition HorizontalAlignment="Right" 
                      VerticalAlignment="Top" 
                      DockTarget="{Binding ElementName=defaultPane}"/>
</dxc:Annotation.ShapePosition>
See Also