SchedulerControl.CustomizeDateNavigationBarCaption Event
Handle this event to specify the caption of the Date Navigation Bar control.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v19.2.dll
Declaration
Event Data
The CustomizeDateNavigationBarCaption event's data class is CustomizeDateNavigationBarCaptionEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Caption | Gets or sets a text displayed as a caption in the SchedulerDateNavigationBar control. |
Interval | Gets the visible date interval of the SchedulerControl which should be indicated in the Date Navigation Bar control. |
Example
The image illustrates how the text in the Date Navigation Bar control is changed by handling the SchedulerControl.CustomizeDateNavigationBarCaption
event.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-schedulercontrol-api-t224044
scheduler.CustomizeDateNavigationBarCaption += scheduler_CustomizeDateNavigationBarCaption;
scheduler.ActiveView.LayoutChanged();
public static void scheduler_CustomizeDateNavigationBarCaption(object sender, CustomizeDateNavigationBarCaptionEventArgs e) {
e.Caption = String.Format("Displaying dates from {0:D} to {1:D}", e.Interval.Start.Date, e.Interval.End.Date);
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomizeDateNavigationBarCaption event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.