Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerPrintAdapter.ValidateWorkTime Event

Occurs when the print adapter retrieves the work time value for use in the report.

Namespace: DevExpress.Xpf.Scheduling.Reporting

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

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public event WorkTimeValidationEventHandler ValidateWorkTime

#Event Data

The ValidateWorkTime event's data class is WorkTimeValidationEventArgs. The following properties provide information specific to this event:

Property Description
DateTimeRange Provides access to a datetime range for which the work-time interval is validated.
Resource Provides access to a resource for which the work-time interval is validated.
WorkTime Gets or sets the work-time interval to be validated.
WorkTimes Gets the list of work times specified for a single day.

#Remarks

Handle the ValidateWorkTime event to check and modify the work time when the report is being built and the controls are rendered.

This event enables you to set a different work time for different days and resources. Check the WorkTimeValidationEventArgs.Resource and the WorkTimeValidationEventArgs.DateTimeRange, which identify the scope for which the work time is specified, and set the WorkTimeValidationEventArgs.WorkTime as required to accomplish the task.

See Also