Skip to main content

GanttConnectorBase.StrokeDashArray Property

Gets or sets a collection of Double values that indicate the pattern of dashes and gaps that is used to draw the Connector. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v24.2.dll

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public DoubleCollection StrokeDashArray { get; set; }

Property Value

Type Description
DoubleCollection

A collection of Double values that specify the pattern of dashes and gaps. This is a dependency property.

Remarks

The code sample below demonstrates how to change the Connector‘s stroke dash array.

<dxgn:GanttControl ItemsSource="{Binding Tasks}"> 
    <dxgn:GanttControl.View> 
        <dxgn:GanttView ...> 
            <dxgn:GanttView.ConnectorStyle> 
                <Style TargetType="dxgn:GanttConnector"> 
                    <Setter Property="StrokeDashArray" Value="4 3"/> 
                </Style> 
            </dxgn:GanttView.ConnectorStyle> 
        </dxgn:GanttView> 
    </dxgn:GanttControl.View> 
</dxgn:GanttControl>
See Also