A newer version of this page is available. Switch to the current version.

SchedulerControl.Views Property

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

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v19.1.dll

Declaration

public ViewCollection Views { get; }
Public ReadOnly Property Views As ViewCollection

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