Shape.StrokeThickness Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the width of the Shape stroke outline.

Namespace: System.Windows.Shapes
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Public Property StrokeThickness As Double
public double StrokeThickness { get; set; }
<object StrokeThickness="double"/>

Property Value

Type: System..::.Double
The width of the Shape outline, in logical pixels.
The default value is 0.

Remarks

Dependency property identifier field: StrokeThicknessProperty

StrokeThickness also applies to the various stroke decorations if they are defined, such as StrokeStartLineCap, or the StrokeDashArray dash pattern.

Generally you should use integral numeric values for this property. Nonintegral values can cause subpixel rendering, and may alter the apparent color of the stroke.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Shape Class

System.Windows.Shapes Namespace

Stroke