Skip to main content

SchedulerControl.ActiveViewChanging Event

Occurs when the scheduler control is changing its active view.

Namespace: DevExpress.Xpf.Scheduler

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

#Declaration

public event ActiveViewChangingEventHandler ActiveViewChanging

#Event Data

The ActiveViewChanging event's handler receives an argument of the ActiveViewChangingEventArgs type. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether changing the currently active view should be canceled.
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 specific actions every time the scheduler's active view is changing. The old and new view types can be accessed via the ActiveViewChangingEventArgs.OldView and ActiveViewChangingEventArgs.NewView properties, correspondingly.

Note that the current active view of the scheduler can be accessed via its SchedulerControl.ActiveView property.

See Also