Shape.StrokeDashOffset Property

May 11, 2014

Gets or sets a Double that specifies the distance within the dash pattern where a dash begins.

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

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

Property Value

Type: System.Double
A Double that represents the distance within the dash pattern where a dash begins. The default value is 0.

Dependency property identifier field: StrokeDashOffsetProperty

The dash pattern is also influenced by StrokeDashArray.

Generally you should use integral numeric values for this property. Non-integral values can cause sub-pixel 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