Skip to main content

StripLineControl Class

A control used to render strip lines within Gantt area.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public class StripLineControl :
    ContentControl

The following members return StripLineControl objects:

Remarks

Use the ControlStyle property to customize the StripLineControl style. This control is used to render strip lines.

Example

The code sample below demonstrates how to apply a custom style to the StripLineControl control to change the control opacity on a mouse hover.

<Window ...
    xmlns:dxgn="http://schemas.devexpress.com/winfx/2008/xaml/gantt" />

<dxgn:GanttControl ItemsSource="{Binding Tasks}" >
    <dxgn:GanttControl.View>
        <dxgn:GanttView
            x:Name="view" ... >
            <dxgn:GanttView.StripLines>
                <dxgn:StripLine 
                    StartDate="08/14/2019 10:00:00" 
                    Duration="5:0:0" 
                    Background="#3FF5BD53">
                    <dxgn:StripLine.ControlStyle>
                        <Style TargetType="{x:Type dxgn:StripLineControl}">
                            <Style.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Opacity" Value=".8" />
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </dxgn:StripLine.ControlStyle>
                </dxgn:StripLine>
            </dxgn:GanttView.StripLines>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>
</Window>
See Also