SchedulerControl() Constructor
Initializes a new instance of the SchedulerControl class with default settings.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
#Example
The following example adds a SchedulerControl to a form.
Design Time
Drag the SchedulerControl item from the toolbox to the form.
Note
If the form already contains a SchedulerScheduler
and assigns it to the Scheduler
.
Runtime
To add a SchedulerControl
to a form at runtime, add references to assemblies listed in the Deployment document. Create SchedulerControl and SchedulerDataStorage instances using default constructors, assign the SchedulerDataStorage
to the SchedulerControl.DataStorage property, and adjust control settings as required.
Important
When you create a Scheduler
in code, wrap all code that modifies control settings in Begin
SchedulerControl scheduler = new SchedulerControl();
SchedulerDataStorage storage = new SchedulerDataStorage();
scheduler.BeginInit();
scheduler.Dock = DockStyle.Fill;
scheduler.ActiveViewType = SchedulerViewType.WorkWeek;
storage.AppointmentDependencies.AutoReload = false;
storage.Appointments.AutoReload = false;
storage.Resources.AutoReload = false;
scheduler.DataStorage = storage;
scheduler.EndInit();
form1.Controls.Add(scheduler);