Skip to main content

SchedulerControl.ActiveViewChanging Event

Occurs when the Scheduler control is changing its active view.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

Declaration

public event ActiveViewChangingEventHandler ActiveViewChanging

Event Data

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

Property Description
Cancel Gets or sets whether to cancel switching to another Scheduler view.
NewView Gets the new value of the SchedulerControl.ActiveView property.
OldView Gets the old value of the SchedulerControl.ActiveView property.

Remarks

Handle the ActiveViewChanging event to perform any actions every time the scheduler’s active view is changing. The scheduler control can switch between views by executing certain commands or changing the SchedulerControl.ActiveViewType property.

Tip

Set the ActiveViewChangingEventArgs.Cancel to true to prevent switching views.

See Also