Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Shape.StrokeLineJoin Property

Gets or sets a PenLineJoin enumeration value that specifies the type of join that is used at the vertices of a Shape.

Namespace: System.Windows.Shapes
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

public PenLineJoin StrokeLineJoin { get; set; }
/** @property */
public PenLineJoin get_StrokeLineJoin ()

/** @property */
public void set_StrokeLineJoin (PenLineJoin value)

public function get StrokeLineJoin () : PenLineJoin

public function set StrokeLineJoin (value : PenLineJoin)

<object StrokeLineJoin="PenLineJoin" .../>

Property Value

One of the enumeration values for PenLineJoin

This property has no effect if you set it on an element that has no vertices, such as on a Line element.

This example shows how to draw a polyline, which is a series of connected lines, by using the Polyline element.

To draw a polyline, create a Polyline element and use its Points property to specify the shape vertices. Finally, use the Stroke and StrokeThickness properties to describe the polyline outline because a line without a stroke is invisible.


Because the Polyline element is not a closed shape, the Fill property has no effect, even if you deliberately close the shape outline. To create a closed shape with a Fill, use a Polygon element.

The following example draws two Polyline elements inside a Canvas.

In Extensible Application Markup Language (XAML), valid syntax for points is a space-delimited list of comma-separated x- and y-coordinate pairs.

<Canvas Height="400" Width="400">

    Points="10,110 60,10 110,110"
    StrokeThickness="4" />

    Points="10,110 110,110 110,10"
    Canvas.Left="150" />


Although this example uses a Canvas to contain the polylines, you can use polyline elements (and all the other shape elements) with any Panel or Control that supports non-text content.

This example is part of a larger sample; for the complete sample, see Shape Elements Sample.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2017 Microsoft