Back to Devexpress

WorkdayRule.IsWorkday Property

wpf-devexpress-dot-xpf-dot-gantt-dot-workdayrule.md

latest1.8 KB
Original Source

WorkdayRule.IsWorkday Property

Gets or sets whether the current rule defines a working, or nonworking day. This is a dependency property.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public bool IsWorkday { get; set; }
vb
Public Property IsWorkday As Boolean

Property Value

TypeDescription
Boolean

true if the rule defines a working day; otherwise, false.

|

Remarks

Example

xaml
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    <dxgn:GanttControl.View>
        <dxgn:GanttView
            NonworkingDayDisplayMode="Show"
            NonworkingTimeDisplayMode="Show">
            <dxgn:GanttView.WorkdayRules>
                <!-- Applies to every Friday -->
                <dxgn:WorkdayRule IsWorkday="False" Recurrence="{dxgn:Weekly DayOfWeek=Friday}" />
                <!-- Applies to every second Saturday -->
                <dxgn:WorkdayRule IsWorkday="False" Recurrence="{dxgn:Weekly DayOfWeek=Saturday, Interval=2}" />
            </dxgn:GanttView.WorkdayRules>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

See Also

WorkdayRule Class

WorkdayRule Members

DevExpress.Xpf.Gantt Namespace