Back to Devexpress

SchedulerControl.VisibleIntervalsChanged Event

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-5e2086ab.md

latest3.0 KB
Original Source

SchedulerControl.VisibleIntervalsChanged Event

Occurs when changing visible time cells interval.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public event VisibleIntervalsChangedEventHandler VisibleIntervalsChanged
vb
Public Event VisibleIntervalsChanged As VisibleIntervalsChangedEventHandler

Event Data

The VisibleIntervalsChanged event's data class is VisibleIntervalsChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
VisibleDatesProvides access to the currently displayed dates.
VisibleIntervalsProvides access to the currently displayed time cell intervals.

Remarks

The VisibleIntervalsChanged event is raised when changing the view or switching to another date. All currently displayed dates are returned by the VisibleIntervalsChangedEventArgs.VisibleDates property. The VisibleIntervalsChangedEventArgs.VisibleIntervals returns currently displayed time ranges.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the VisibleIntervalsChanged 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.

wpf-scheduler-hide-non-working-days-in-day-view/CS/NavigateCommandExample/MainWindow.xaml#L28

xml
Loaded="{DXEvent Handler='InitDays(@e(scheduler))'}"
VisibleIntervalsChanged="{DXEvent Handler='OnVisibleIntervalsChanged(@sender, @args)'}">
<!--endregion #SchedulerEvents-->

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace