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.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduler
#Declaration
[DefaultValue(SchedulerViewType.Day)]
public SchedulerViewType ActiveViewType { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Scheduler |
Day | A Scheduler |
Available values:
Name | Description |
---|---|
Day | Specifies the Day |
Week | Specifies the Week |
Month | Specifies the Month |
Work |
Specifies the Work |
Timeline | Specifies the Timeline |
Gantt | Specifies the Gantt |
Full |
Specifies the Full |
Agenda | Specifies the Agenda |
Year | Specifies the Year |
#Remarks
Important
You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.
To access the current View of the scheduler, use the SchedulerControl.ActiveView property.
#Example
This example demonstrates how to provide end-users with the capability to change the type of View that is currently active in the Scheduler control.
The code below illustrates how to use the RadioButtonList control for this. This control should be bound to a ArrayList object, 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 of the Scheduler control.
<GroupBox Header="View Types" Grid.Column="0">
<dx:RadioButtonList x:Name="viewType" Margin="4"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Background="{x:Null}"
SelectedValue="{Binding ElementName=schedulerControl1, Path=ActiveViewType, Mode=TwoWay}">
<dx:RadioButtonList.ItemsSource>
<collections:ArrayList>
<dxschcore:SchedulerViewType>Day</dxschcore:SchedulerViewType>
<dxschcore:SchedulerViewType>FullWeek</dxschcore:SchedulerViewType>
<dxschcore:SchedulerViewType>Week</dxschcore:SchedulerViewType>
<dxschcore:SchedulerViewType>WorkWeek</dxschcore:SchedulerViewType>
<dxschcore:SchedulerViewType>Month</dxschcore:SchedulerViewType>
<dxschcore:SchedulerViewType>Timeline</dxschcore:SchedulerViewType>
</collections:ArrayList>
</dx:RadioButtonList.ItemsSource>
</dx:RadioButtonList>
</GroupBox>
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ActiveViewType 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.