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.Width Property

Specifies the map line cap width.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

#Declaration

public double Width { get; set; }

#Property Value

Type Description
Double

A value that specifies the map line cap width.

#Remarks

Use the Width property to define the width of a cap arrow or a cap custom shape. The arrow is displayed when the Geometry property is not set.

The following example specifies a custom end cap shape, shows the default arrow for the MapLine start cap, and sets their dimensions:

Map Line Caps

<dxm:MapLine Point1="-3, -10" Point2="-10, -28"  Stroke="Blue">
  <dxm:MapLine.StrokeStyle>
    <dxm:StrokeStyle Thickness="2"/>
  </dxm:MapLine.StrokeStyle>
  <dxm:MapLine.StartLineCap >
    <dxm:MapLineCap Visible="True" Length="30" Width="15"/>
  </dxm:MapLine.StartLineCap>
  <dxm:MapLine.EndLineCap>
    <dxm:MapLineCap  Visible="True" Length="30" Width="15">
      <dxm:MapLineCap.Geometry>
        <PathGeometry Figures="M 0, 0 L 0,-0.5 L 0.5,-0.5 L 0.5, 0.5 L 0,0.5 Z "/>
      </dxm:MapLineCap.Geometry>
    </dxm:MapLineCap>
  </dxm:MapLine.EndLineCap>
</dxm:MapLine>
See Also