Back to Devexpress

SchedulerControl.FilterAppointment Event

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

latest3.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public event FilterAppointmentEventHandler FilterAppointment
vb
Public Event FilterAppointment As FilterAppointmentEventHandler

Event Data

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

PropertyDescription
AppointmentThe appointment for which the event is raised.
SchedulerThe scheduler that raised the event.
ViewThe scheduler’s view that raised the event.
VisibleSpecifies 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

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace