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.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
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.