Skip to main content

StripLineBase.ControlStyle Property

Gets or sets the style applied to the control that is used to render strip lines. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public Style ControlStyle { get; set; }

Property Value

Type Description
Style

A Style object that is applied to StripLineControl.

Remarks

The ControlStyle property allows you to customize the StripLineControl style. This control is used to render strip lines.

<dxgn:StripLine
    Background="#3FF5BD53"
    BorderBrush="#FFF5BD53"
    BorderThickness="1,0"
    Duration="5:0:0"
    StartDate="08/28/2019 10:00:00">
    <!-- Change strip line opacity when an end user moves the cursor over it -->
    <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>
See Also