windowsforms-devexpress-dot-xtrascheduler-dot-scheduleroptionsbehavior.md
Gets or sets whether the SchedulerControl performs layout calculations on multiple threads.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
[DefaultValue(true)]
[XtraSerializableProperty]
public bool UseAsyncMode { get; set; }
<XtraSerializableProperty>
<DefaultValue(True)>
Public Property UseAsyncMode As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to enable asynchronous layout calculation to improve performance.; false to disable asynchronous mode.
|
You can access this nested property as listed below:
| Object Type | Path to UseAsyncMode |
|---|---|
| SchedulerControl |
.OptionsBehavior .UseAsyncMode
|
SchedulerControl uses asynchronous mode to improve rendering speed and reduce UI blocking. The control calculates layout elements on separate threads and optimizes the use of the skin cache (this cache runs on a separate thread). If SchedulerControl is not fully initialized during layout calculation, this optimization may degrade performance.
To avoid performance-related issues, explicitly initialize SchedulerControl with BeginInit() and EndInit() methods:
this.scheduler = new SchedulerControl();
this.scheduler.BeginInit();
// Configure the Scheduler control.
this.scheduler.EndInit();
See Also
SchedulerOptionsBehavior Class