Back to Devexpress

StripLineControl Class

wpf-devexpress-dot-xpf-dot-gantt-05ea5318.md

latest3.1 KB
Original Source

StripLineControl Class

A control used to render strip lines within Gantt area.

Namespace : DevExpress.Xpf.Gantt

Assembly : DevExpress.Xpf.Gantt.v25.2.dll

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public class StripLineControl :
    ContentControl
vb
Public Class StripLineControl
    Inherits 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.

xaml
<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>

Inheritance

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ContentControl StripLineControl

See Also

StripLineControl Members

DevExpress.Xpf.Gantt Namespace