All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

StripLineControl Class

A control used to render strip lines within Gantt area.

Namespace: DevExpress.Xpf.Gantt

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

Declaration

public class StripLineControl :
    ContentControl
Public Class StripLineControl
    Inherits ContentControl

Related API Members

The following members accept/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