Skip to main content

SchedulerControl.VisibleResourcesChanged Event

Occurs when resources displayed in the scheduler view are changed, or the number of visible resources is changed, or the scheduler switches views.

Namespace: DevExpress.Xpf.Scheduler

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

NuGet Package: DevExpress.Wpf.Scheduler

Declaration

public event VisibleResourcesChangedEventHandler VisibleResourcesChanged

Event Data

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

Property Description
NewFirstVisibleResourceIndex Gets the index of the first (the leftmost or the topmost, depending on the view) resource displayed in the view after the change of visible resources occurs.
NewResourcePerPage Gets the new number of displayed resources.
OldFirstVisibleResourceIndex Gets the index of the first (the leftmost or the topmost, depending on the view) resource displayed in the view before the change of visible resources occurs.
OldResourcePerPage Gets the number of displayed resources before the change takes place.

The event data class exposes the following methods:

Method Description
GetVisibleResources() Obtains a collection of visible resources.

Remarks

Important

You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

The Resource Navigator control allows end-users to navigate resources or change the number of visible resources (the SchedulerViewBase.ResourcesPerPage property). When the end user performs this action, the VisibleResourcesChanged event occurs.

The VisibleResourcesChanged event allows you to specify a filter for displayed resources or use the SchedulerStorage.FetchAppointments event to load appointments for visible resources only. This may be useful when a large number of resources affect the scheduler performance.

See Also