Back to Devexpress

Time Ruler

wpf-404183-controls-and-libraries-scheduler-visual-elements-time-ruler.md

latest2.6 KB
Original Source

Time Ruler

  • Dec 14, 2022
  • 2 minutes to read

You can add multiple Time Rulers to a view and let users navigate appointments in multiple time zones. These UI elements available in the Day View, Work Week View, and Week View views.

Run Demo: Time Ruler

The image below illustrates a Scheduler control’s Day View with time rulers.

The Time Ruler includes the following elements:

TimeRuler.CaptionDisplays a time zone or a geographical region.Time MarkerIndicates the current time. Use the TimeRuler.TimeMarkerVisibility property to specify the visibility for a particular time ruler, or the DayViewBase.VisibleTime property to specify the visibility for all time rulers if the TimeRuler.TimeMarkerVisibility property set to null.MinutesMinute portion in time ruler labels. Use the TimeRuler.ShowMinutes property to control visibility.Time DesignatorDisplays a time label for the first visible row. Use the TimeRuler.AlwaysShowTimeDesignator property to control visibility.Time IndicatorIndicates the current time across the entire view. Use the DayViewBase.TimeIndicatorVisibility and TimelineView.TimeIndicatorVisibility properties to specify time indicator options, including its visibility.“More” ButtonsIndicate that additional appointments are available on the displayed dates, but they don’t fit into the current visible range. Users can click these buttons to scroll the schedule and bring those appointments into the view.

To set up a time ruler, use the Scheduling.TimeRuler class.