Skip to main content

SchedulerControl.LimitInterval Property

Gets or sets the time interval available for end-users.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduler

Declaration

public TimeInterval LimitInterval { get; set; }

Property Value

Type Description
TimeInterval

A TimeInterval object.

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.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

Use the LimitInterval property to prevent end-users from operation beyond the specified time interval and block the view of appointments for dates outside this interval. When specifying the interval, you should not exceed the real-life time range which is common for the System.DateTime value type: from 12:00:00 midnight, January 1, 0001 Anno Domini (Common Era) to 11:59:59 P.M., December 31, 9999 A.D. (C.E.)

Example

This example demonstrates how to set the scheduler’s limit interval with the specified start date and duration, using the SchedulerControl.LimitInterval property.

<dxsch:SchedulerControl.LimitInterval>
     <dxschcore:TimeInterval Start="10/8/2010" Duration="5"/>
</dxsch:SchedulerControl.LimitInterval>
See Also