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
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 a value indicating whether changing of the currently active view should be canceled. |
New |
Gets the new value of the Scheduler |
Old |
Gets the old value of the Scheduler |
#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.
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.