TimeScaleBase.DisplayFormat Property
Gets or sets the format of the string displayed in the timeline caption.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
Property Value
Type | Description |
---|---|
String | A String value specifying the format string of the caption. |
Remarks
You can specify the format to display individual dates or date intervals, as illustrated in the following code snippet:
<dxsch:TimeScaleWeek DisplayFormat="{}{0:dd} - {1:dd}"/>
<dxsch:TimeScaleDay DisplayFormat="{}{0:dd ddd}"/>
The resulting TimelineView looks as follows:
Refer to the Custom date and time format strings article for information on formats.
Tip
Use the TimeScaleBase.DisplayFormats property to specify the collection of format strings. A suitable format string will be automatically selected depending on the timeline header width.
See Also