Back to Devexpress

SchedulerControl.ActiveViewChanged Event

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-5d8868ba.md

latest3.0 KB
Original Source

SchedulerControl.ActiveViewChanged Event

Occurs after the active view of the Scheduler control has been changed.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public event EventHandler ActiveViewChanged
vb
Public Event ActiveViewChanged As EventHandler

Event Data

The ActiveViewChanged event's data class is EventArgs.

Remarks

Handle the ActiveViewChanged event to perform any actions every time the scheduler’s active view is changed. Note that the current active view of the scheduler can be accessed via its SchedulerControl.ActiveView property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ActiveViewChanged event.

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.

winforms-scheduler-create-gantt-chart/CS/GanttExample/Form1.cs#L31

csharp
//Fix the view type and splitter position.
schedulerControl1.ActiveViewChanged += new EventHandler(schedulerControl1_ActiveViewChanged);
this.splitContainerControl1.SplitterPositionChanged += new System.EventHandler(this.splitContainerControl1_SplitterPositionChanged);

winforms-scheduler-create-gantt-chart/VB/GanttExample/Form1.vb#L33

vb
'Fix the view type and splitter position.
AddHandler schedulerControl1.ActiveViewChanged, AddressOf schedulerControl1_ActiveViewChanged
AddHandler splitContainerControl1.SplitterPositionChanged, AddressOf splitContainerControl1_SplitterPositionChanged

See Also

ActiveView

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace