Skip to main content
A newer version of this page is available. .

SchedulerControl.FilterAppointment Event

Raised each time an appointment is about to be displayed by the scheduler’s view and allows you to hide this appointment.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Scheduling, DevExpress.Wpf.Scheduling

Declaration

public event FilterAppointmentEventHandler FilterAppointment

Event Data

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

Property Description
Appointment The appointment for which the event is raised.
Scheduler The scheduler that raised the event.
View The scheduler’s view that raised the event.
Visible Specifies whether to display the appointment for which the event is raised.

Remarks

The Appointment property returns the appointment for which the event is raised. Set the Visible property to false to hide this appointment.

If the appointment is hidden by the SchedulerControl.AppointmentFilterCriteria or SchedulerControl.AppointmentFilterString property, the event’s Visible property returns false. Set the Visible property to true to override the filter criteria/expression.

For regular occurrences, the FilterAppointment event is raised only once. In this scenario, the Appointment property returns the pattern.

Refer to the Filter Appointments and Time Regions topic for more information.

See Also