Back to Devexpress

Monthly Class

wpf-devexpress-dot-xpf-dot-gantt-65cd0701.md

latest2.0 KB
Original Source

Monthly Class

Represents the monthly recurrence.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public sealed class Monthly :
    Recurrence
vb
Public NotInheritable Class Monthly
    Inherits Recurrence

Remarks

Use the Monthly object to define that the rule reoccurs on a monthly basis.

Use the Day property to specify a day of month when the rule is applied.

Example

xaml
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    <dxgn:GanttControl.View>
        <dxgn:GanttView ...
            NonworkingDayDisplayMode="Show"
            NonworkingTimeDisplayMode="Show">
            <dxgn:GanttView.WorkingTimeRules>
                <!-- The rule applies to the first day of each month (January, 1; February, 1; etc.) -->
                <dxgn:WorkingTimeRule Recurrence="{dxgn:Monthly Day=1}" WorkingTime="9:0:0-13:0:0, 14:0:0-17:0:0" />
            </dxgn:GanttView.WorkingTimeRules>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

Inheritance

Object DispatcherObject DependencyObject Freezable RecurrenceBase Recurrence Monthly

See Also

Monthly Members

DevExpress.Xpf.Gantt Namespace