Back to Devexpress

StripLine.StartDate Property

wpf-devexpress-dot-xpf-dot-gantt-dot-stripline-6bebf61d.md

latest1.7 KB
Original Source

StripLine.StartDate Property

Gets or sets the strip line’s start date. This is a dependency property.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public DateTime StartDate { get; set; }
vb
Public Property StartDate As Date

Property Value

TypeDescription
DateTime

A DateTime value that points to the strip line’s start date.

|

Remarks

Use the StartDate property to specify the strip line’s start date.

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>

See Also

StripLine Class

StripLine Members

DevExpress.Xpf.Gantt Namespace