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.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<object StrokeThickness="double"/>
Property Value
Type: System.DoubleThe width of the Shape outline, in logical 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.