Back to Devexpress

StripLineRule Class

wpf-devexpress-dot-xpf-dot-gantt-83b432ee.md

latest2.3 KB
Original Source

StripLineRule Class

Represents a set of strip lines defined by a recurrence rule and duration.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public sealed class StripLineRule :
    StripLineBase
vb
Public NotInheritable Class StripLineRule
    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:StripLineRule 
                    Duration="8:0:0"
                    Recurrence="{dxgn:Weekly DayOfWeek=Friday, Start=1/1/2019, Until=12/31/2019}"
                    StartOffset="8:0:0"/>
            </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.

Inheritance

Object DispatcherObject DependencyObject ContentElement FrameworkContentElement StripLineBase StripLineRule

See Also

StripLineRule Members

DevExpress.Xpf.Gantt Namespace