wpf-devexpress-dot-xpf-dot-charts-dot-freeposition-44a927e4.md
Specifies the element (chart or pane) to which the annotation shape is docked.
Namespace : DevExpress.Xpf.Charts
Assembly : DevExpress.Xpf.Charts.v25.2.dll
NuGet Package : DevExpress.Wpf.Charts
public IDockTarget DockTarget { get; set; }
Public Property DockTarget As IDockTarget
| Type | Description |
|---|---|
| IDockTarget |
An object of the class implementing the IDockTarget interface.
|
When the Annotation.ShapePosition property is specified to FreePosition, use the DockTarget , FreePosition.HorizontalAlignment and FreePosition.VerticalAlignment properties to position an annotation within the required parent element.
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.
<dxc:Annotation.ShapePosition>
<dxc:FreePosition HorizontalAlignment="Right"
VerticalAlignment="Top"
DockTarget="{Binding ElementName=defaultPane}"/>
</dxc:Annotation.ShapePosition>
See Also