Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the width of a Shape stroke outline.

<object StrokeThickness="Double"  .../>
value = object.strokeThickness
object.strokeThickness = value

Property Value

Type: Double

The width of the Shape outline, in pixels.

This property is read/write. The default value is 0.

Managed Equivalent



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