Back to Devexpress

SchedulerControl.ActiveViewType Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-7b8f5ab8.md

latest3.0 KB
Original Source

SchedulerControl.ActiveViewType Property

Returns the active view. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public ViewType? ActiveViewType { get; set; }
vb
Public Property ActiveViewType As ViewType?

Property Value

TypeDescription
Nullable<DevExpress.Xpf.Scheduling.ViewType>

A DevExpress.Xpf.Scheduling.ViewType enumeration value.

|

Remarks

Use the ActiveView property to obtain the currently active view. To change the active view type, set the SchedulerControl.ActiveViewIndex property to the index of the required view in the SchedulerControl.Views collection.

The following code snippets (auto-collected from DevExpress Examples) contain references 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.

wpf-scheduler-add-datenavigator-and-resourcetree-controls/CS/DXSample/MainWindow.xaml#L23

xml
<dxsch:SchedulerControl x:Name="scheduler"
                        ActiveViewType="DayView"
                        GroupType="Resource">

wpf-scheduler-filter-time-regions/CS/DXSample/MainWindow.xaml#L38

xml
<dxsch:SchedulerControl Name="scheduler"
                        ActiveViewType="WeekView"
                        CommandBarStyle="Ribbon"

See Also

ActiveView

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace