Skip to main content

GanttConnectorBase.Stroke Property

Gets or sets the brush used to paint the task connector. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public Brush Stroke { get; set; }

Property Value

Type Description
Brush

A brush used to paint the connector.

Remarks

The code sample below demonstrates how to change the Connector‘s color.

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