wpf-devexpress-dot-xpf-dot-scheduling-dot-dayviewbase-78e82718.md
Gets or sets a value indicating whether the SchedulerControl should show its data only for the working hours in the Day View, Work Week View, and Week View. This is a dependency property.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public bool ShowWorkTimeOnly { get; set; }
Public Property ShowWorkTimeOnly As Boolean
| Type | Description |
|---|---|
| Boolean |
true, to show work hours only; otherwise, false.
|
Use the SchedulerControl.WorkTime property to specify the time interval for the working day.
Note
If the DayViewBase.ShowWorkTimeOnly option is true , and the SchedulerControl.WorkTime and DayViewBase.VisibleTime properties are set to different intervals, the scheduler displays an interval that is an intersection of the specified intervals.
The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowWorkTimeOnly 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.
ShowAllDayArea="False"
ShowWorkTimeOnly="True" />
<dxsch:WorkWeekView
wpf-scheduler-customize-appointment-appearance/CS/CustomizeAppointmentExample/MainWindow.xaml#L92
ShowAllDayArea="False"
ShowWorkTimeOnly="True"
DayCount="3"/>
DayCount="2"
ShowWorkTimeOnly="True" />
</dxsch:SchedulerControl>
wpf-scheduler-apply-end-user-restrictions/CS/WpfApplication1/MainWindow.xaml#L22
<!--endregion #main-->
<dxsch:DayView x:Name="dayView1" ResourcesPerPage="2" ShowWorkTimeOnly="True"/>
<dxsch:SchedulerControl.DataSource>
<dxsch:SchedulerControl x:Name="scheduler">
<dxsch:DayView x:Name="dayView" ShowWorkTimeOnly="True" TimeScale="00:30:00" TimeRulersSource="{Binding TimeRulers}" TimeRulerTemplate="{StaticResource TimeRulerGeneratorTemplate}"/>
</dxsch:SchedulerControl>
See Also