Click or drag to resize
CanvasStrokeStyleCustomDashStyle Property
Gets or sets an array describing a custom dash pattern. This overrides the DashStyle property, which is only used when CustomDashStyle is set to null.

Namespace:  Microsoft.Graphics.Canvas.Geometry
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public float[] CustomDashStyle { get; set; }

Property Value

Type: Single
Remarks

A custom dash style is an array whose elements specify the length of each dash and space in the pattern. The first element sets the length of a dash, the second element sets the length of a space, the third element sets the length of a dash, and so on. The length of each dash and space in the dash pattern is the product of the element value in the array and the stroke width.

This array must contain an even number of elements.

This property is initialized to null.

If the dash style is configured to contain a dash which is zero-length, that dash will only be visible with a cap style other than Flat.

See Also