Back to Devexpress

SchedulerControl.ActiveViewChanging Event

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-b61b9cfb.md

latest2.5 KB
Original Source

SchedulerControl.ActiveViewChanging Event

Occurs when the Scheduler control is changing its active view.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public event ActiveViewChangingEventHandler ActiveViewChanging
vb
Public Event ActiveViewChanging As ActiveViewChangingEventHandler

Event Data

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

PropertyDescription
CancelGets or sets whether to cancel switching to another Scheduler view.
NewViewGets the new value of the SchedulerControl.ActiveView property.
OldViewGets 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

ActiveViewType

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace