SchedulerControl.ActiveViewIndex Property
Gets or sets the index of the view currently used by the SchedulerControl to show its data. This is a dependency property.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value specifying a zero-based index of the active view in the SchedulerControl.Views collection. |
Remarks
The ActiveViewIndex property allows you to change the type of view currently active in the SchedulerControl. To do this, set the ActiveViewIndex property to the index of the required view in the SchedulerControl.Views collection, which stores all views defined in the control.
Use the SchedulerControl.ActiveView property to access the current scheduler view. To check whether a given view is active, use the view’s ViewBase.IsActive property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ActiveViewIndex property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.