Skip to main content
All docs
V25.1
  • MapLineCap.Geometry Property

    Specifies a custom cap shape.

    Namespace: DevExpress.Xpf.Map

    Assembly: DevExpress.Xpf.Map.v25.1.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