Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

public string DisplayFormat { get; set; }

#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