Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MapLineCap.Geometry Property

Specifies a custom cap shape.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v24.2.dll

NuGet Package: DevExpress.Wpf.Map

#Declaration

public PathGeometry Geometry { get; set; }

#Property Value

Type Description
PathGeometry

A PathGeometry object that defines the cap shape.

#Remarks

The following example defines the Geometry property to display a custom arrow as a map line start cap:

Custom Line Cap Shape

<dxm:MapLine Point1="-3, -10" Point2="-10, -28"  Stroke="Blue">
  <dxm:MapLine.StartLineCap>
    <dxm:MapLineCap  Visible="True">
      <dxm:MapLineCap.Geometry>
        <PathGeometry Figures="M-0.38,-0.5 L 0.44,-0.05 C 0.44,-0.05 0.5,0 0.44,0.05 
                               L 0.44,0.05 L -0.38,0.5 C -0.38,0.5 -0.44,0.5 -0.41,0.4 L -0.41,0.4 
                               L -0.13,0 L -0.41,-0.4 C -0.41,-0.4 -0.44,-0.475 -0.38,-0.5 Z"/>
      </dxm:MapLineCap.Geometry>
    </dxm:MapLineCap>
  </dxm:MapLine.StartLineCap>
</dxm:MapLine>

If the Geometry property is not specified and the Visible property is set to true, the Map Control displays the default arrow.

See Also