CalendarClient.IntervalFactories Property
Gets or sets a collection of IntervalFactory descendants. The objects in this collection define the available time intervals and formatting rules applied to them. Time intervals are visually represented by the calendar items.
Namespace: DevExpress.Xpf.Editors.RangeControl
Assembly: DevExpress.Xpf.Core.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
ObservableCollection<DevExpress.Xpf.Editors.RangeControl.IntervalFactory> | A collection of factory objects that define the available calendar items. |
Remarks
Use the IntervalFactories property to specify the time intervals that the CalendarClient items can display. The following intervals are available.
- YearIntervalFactory
- QuarterIntervalFactory
- MonthIntervalFactory
- DayIntervalFactory
- HourIntervalFactory
- MinuteIntervalFactory
- SecondIntervalFactory
The following example demonstrates how to configure a calendar client using the IntervalFactory objects.
<dxe:RangeControl>
<dxe:CalendarClient AllowGrouping="False">
<dxe:CalendarClient.IntervalFactories>
<dxe:MonthIntervalFactory/>
<dxe:DayIntervalFactory/>
<dxe:HourIntervalFactory/>
</dxe:CalendarClient.IntervalFactories>
</dxe:CalendarClient>
</dxe:RangeControl>
The image below demonstrates the resulting appearance of calendar items.
See Also