Skip to main content

SchedulerControl.ActiveViewType Property

Gets or sets the type of the view which is currently used by the SchedulerControl to show its data.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

[DefaultValue(SchedulerViewType.Day)]
[XtraSerializableProperty(XtraSerializationFlags.DefaultValue)]
public SchedulerViewType ActiveViewType { get; set; }

#Property Value

Type Default Description
SchedulerViewType

Day

A SchedulerViewType enumeration value specifying the active View type.

#Remarks

To access the current View of the scheduler, use the SchedulerControl.ActiveView property.

#Examples

This example demonstrates how to provide end-users with the capability to change the type of View that is currently active in the SchedulerControl.

The code below illustrates how to use the RadioButtonList control for this. This control should be bound to an List<T><Object,> descendant, which contains items equivalent to the SchedulerViewType enumeration values. Then, it is necessary to bind the RadioButtonList.SelectedValue property value to the SchedulerControl.ActiveViewType property.

See Also