windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-5d8868ba.md
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
public event EventHandler ActiveViewChanged
Public Event ActiveViewChanged As EventHandler
The ActiveViewChanged event's data class is EventArgs.
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
//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
'Fix the view type and splitter position.
AddHandler schedulerControl1.ActiveViewChanged, AddressOf schedulerControl1_ActiveViewChanged
AddHandler splitContainerControl1.SplitterPositionChanged, AddressOf splitContainerControl1_SplitterPositionChanged
See Also