Skip to main content

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.v22.2.dll

NuGet Package: DevExpress.Wpf.Scheduling


public int ActiveViewIndex { get; set; }

Property Value

Type Description

An integer value specifying a zero-based index of the active view in the SchedulerControl.Views collection.


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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ActiveViewIndex property.


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.

See Also