SchedulerControl.ActiveView Property
Provides access to the View currently used by the Scheduler to show its data.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduler
Declaration
Property Value
Type | Description |
---|---|
SchedulerViewBase | A SchedulerViewBase class descendant, which represents the currently active view. |
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.
Note that the ActiveView property is read-only. So, it’s possible to change the current view’s properties, but the ActiveView property’s value cannot be assigned to an instance of another view.
If you want to change the type of the currently active View instead, set the SchedulerControl.ActiveViewType property to one of the SchedulerViewType enumeration values. Also, handle the SchedulerControl.ActiveViewChanging and SchedulerControl.ActiveViewChanged events, to perform any actions every time the active View is changing or changed.