Skip to main content

GanttConnectorBase.StrokeDashOffset Property

Gets or sets a Double that specifies the distance within the dash pattern where a dash begins. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public double StrokeDashOffset { get; set; }

Property Value

Type Description
Double

A Double that represents the distance within the dash pattern where a dash begins.

Remarks

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

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