SchedulerControl.ActiveViewChanging Event
Occurs when the Scheduler control is changing its active view.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduler
Declaration
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 a value indicating whether changing of 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
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.
Handle the ActiveViewChanging event to perform specific actions every time the Scheduler control’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.