Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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