Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StrokeThickness Property

Shape.StrokeThickness Property

Gets or sets the width of the Shape stroke outline.

Namespace:  System.Windows.Shapes
Assembly:  System.Windows (in System.Windows.dll)

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

Property Value

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

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.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2015 Microsoft