Back to Devexpress

FreePosition Class

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

latest2.9 KB
Original Source

FreePosition Class

The settings for the annotation free position.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public class FreePosition :
    AnnotationShapePosition
vb
Public Class FreePosition
    Inherits AnnotationShapePosition

Remarks

If the Annotation.ShapePosition property is specified as FreePosition , it is possible to define a parent element for the annotation shape using the FreePosition.DockTarget property. Configure the annotation layout using the FreePosition.HorizontalAlignment and FreePosition.VerticalAlignment properties. Indents from parent element edges can be customized using the Annotation.Margin property.

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.

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

Inheritance

Object DispatcherObject DependencyObject Freezable ChartDependencyObject AnnotationShapePosition FreePosition

See Also

FreePosition Members

RelativePosition

DevExpress.Xpf.Charts Namespace