Skip to main content
A newer version of this page is available. .

SchedulerControl.Views Property

Provides access to the collection of the SchedulerControl’s views.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Scheduling, DevExpress.Wpf.Scheduling

Declaration

public ViewCollection Views { get; }

Property Value

Type Description
DevExpress.Xpf.Scheduling.ViewCollection

A collection that stores all views specified in the scheduler.

Remarks

The SchedulerControl has all views with the default settings enabled out-of-the-box. All these views are stored in the collection, which the Views property returns. However, if you declare any view in XAML or the SchedulerControl’s smart tag, the Views collection is overwritten to include only the specified views. You can define any number of views with the same type and different settings.

To set an active view used by the SchedulerControl to display its data, set the SchedulerControl.ActiveViewIndex property to the index of the required view in the Views collection.

See Also