This documentation is archived and is not being maintained.

Pen.MiterLimit Property

Gets or sets the limit on the ratio of the miter length to half this pen's Thickness. This is a dependency property.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public double MiterLimit { get; set; }
<object MiterLimit="double" .../>

Property Value

Type: System.Double
The limit on the ratio of the miter length to half the pen's Thickness. This value is always a positive number greater than or equal to 1. The default value is 10.0.

Identifier field


Metadata properties set to true


A miter is a joint made by beveling each of two surfaces to be joined to form a corner. When two line segments meet at a sharp angle, the miter may extend beyond the thickness of the line that strokes the path.

The following example shows how to use the MiterLimit property to limit the size of a corner created by two line segments.

  <StackPanel Margin="20">

    <Canvas Margin="100"  Width="100" Height="100">
                      <PathFigure StartPoint="100,50">
                            <LineSegment Point="200,70" />
                            <LineSegment Point="100,60" />

                <!-- The MiterLimit is set to a value of 0 so the corner formed
                     by where the two line segments join is cut or blunted. A larger 
                     value would allow for the corner to extend out even beyond 
                     the thickness of the line. -->
                <Pen Brush="Blue" Thickness="4" MiterLimit="0"  />



The following illustration shows what this code example produces.

Shows MiterLimit example. Corner formed is cut.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0