Export (0) Print
Expand All
Information
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.StrokeThickness Property

July 28, 2014

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.

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.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft