SchedulerControl.RangeControlAutoAdjusting Event
Occurs before the RangeControl has been automatically adjusted when the scheduler active view or start date is changed.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduler
#Declaration
public event RangeControlAdjustEventHandler RangeControlAutoAdjusting
#Event Data
The RangeControlAutoAdjusting event's data class is RangeControlAdjustEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Range |
Gets or sets the end bound of the range that will be available in the Range |
Range |
Gets or sets the start bound of the range that will be available in the Range |
Scales |
Provides access to the collection of scales that will be visible in the Range |
#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.
When switching the scheduler active view, or navigating the SchedulerControl so that its SchedulerControl.Start date is beyond the bound RangeControl’s available time range, you can change scales and display formats for the RangeControl by handling the RangeControlAutoAdjusting event.
Note
The Range
Use the event arguments to customize the RangeControl scales (RangeControlAdjustEventArgs.Scales) and total range boundaries (RangeControlAdjustEventArgs.RangeMinimum, RangeControlAdjustEventArgs.RangeMaximum) to be applied when adjusting the RangeControl. To review the default auto-adjust settings, see the SchedulerOptionsRangeControl.AutoAdjustMode property description.