Back to Devexpress

StripLine Class

wpf-devexpress-dot-xpf-dot-gantt-6e7b58a0.md

latest2.6 KB
Original Source

StripLine Class

Represents a single strip line defined by a start date and duration.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public sealed class StripLine :
    StripLineBase
vb
Public NotInheritable Class StripLine
    Inherits StripLineBase

Remarks

How to Use

Use the GanttView.StripLines property to populate a collection of strip lines displayed within the Gantt area.

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:GanttView.StripLines>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>
</Window>

The Strip Lines (Time Indicators) document describes how to load strip lines from a ViewModel.

Note

The EndDate is calculated automatically according the strip line’s StartDate, strip line’s Duration, and working time rules.

Inheritance

Object DispatcherObject DependencyObject ContentElement FrameworkContentElement StripLineBase StripLine

See Also

StripLine Members

DevExpress.Xpf.Gantt Namespace