Back to Devexpress

YearlyByDayOfWeek.Month Property

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

latest1.9 KB
Original Source

YearlyByDayOfWeek.Month Property

Gets or sets a month when the rule is applied. This is a dependency property.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public int Month { get; set; }
vb
Public Property Month As Integer

Property Value

TypeDescription
Int32

A month number.

|

Remarks

Use the Month , DayOfWeek, and Week properties to specify a month, a day of week, and a number of week when the rule is applied.

Example

xaml
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    <dxgn:GanttControl.View>
        <dxgn:GanttView ...
            NonworkingDayDisplayMode="Show"
            NonworkingTimeDisplayMode="Show">
            <dxgn:GanttView.WorkdayRules>
                <!-- Marks as a nonworking the day when the Thanksgiving (United States) is celebrated -->
                <dxgn:WorkdayRule IsWorkday="False" Recurrence="{dxgn:YearlyByDayOfWeek Month=11, DayOfWeek=Thursday, Week=4}" />
            </dxgn:GanttView.WorkdayRules>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

See Also

YearlyByDayOfWeek Class

YearlyByDayOfWeek Members

DevExpress.Xpf.Gantt Namespace