Back to Devexpress

SchedulerControl.WorkDays Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-a533b300.md

latest3.4 KB
Original Source

SchedulerControl.WorkDays Property

Gets or sets days that form a work week. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public WeekDays WorkDays { get; set; }
vb
Public Property WorkDays As WeekDays

Property Value

TypeDescription
WeekDays

A WeekDays enumeration values that specify work days.

|

Available values:

NameDescription
Sunday

Specifies Sunday.

| | Monday |

Specifies Monday.

| | Tuesday |

Specifies Tuesday.

| | Wednesday |

Specifies Wednesday.

| | Thursday |

Specifies Thursday.

| | Friday |

Specifies Friday.

| | Saturday |

Specifies Saturday.

| | WeekendDays |

Specifies Saturday and Sunday.

| | WorkDays |

Specifies work days ( Monday , Tuesday , Wednesday , Thursday and Friday ).

| | EveryDay |

Specifies every day of the week.

|

Remarks

Use the WorkDays property to define days that are a part of your work week. This information is used by the Work Week View, which displays only working days by default.

The default work week lasts from Monday through Friday. Use the WorkDays property to specify a different set of work days.

xaml
<dxsch:SchedulerControl x:Name="scheduler" WorkDays="Monday,Wednesday,Friday"/>

The following code snippets (auto-collected from DevExpress Examples) contain references to the WorkDays property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-scheduler-customize-context-menus/CS/DXScheduler_PopUpMenuCustomization/MainWindow.xaml#L19

xml
GroupType="Date"
WorkDays="WorkDays,Saturday"
WorkTime="06:00:00-23:00:00">

wpf-scheduler-handle-popupmenushowing-event-to-customize-context-menus/CS/PopUpMenuShowingEvent/MainWindow.xaml#L14

xml
GroupType="Date"
WorkDays="WorkDays,Saturday"
WorkTime="06:00:00-23:00:00"

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace