Back to Devexpress

DayViewBase.TimeIndicatorVisibility Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-dayviewbase-79247621.md

latest3.8 KB
Original Source

DayViewBase.TimeIndicatorVisibility Property

Gets or sets a mode that specifies how to display the Time Indicator in the Day View, Work Week View, and Week View. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public TimeIndicatorVisibility TimeIndicatorVisibility { get; set; }
vb
Public Property TimeIndicatorVisibility As TimeIndicatorVisibility

Property Value

TypeDescription
TimeIndicatorVisibility

A TimeIndicatorVisibility enumeration member. The default is TimeIndicatorVisibility.TodayView.

|

Available values:

NameDescriptionImage
Never

The time indicator is hidden.

|

| | Always |

The time indicator is always displayed across the entire view.

|

| | TodayView |

If the current interval includes the today day column, the indicator is displayed for all days (equal to the “Always” value). If there is no today date in the current interval, the indicator is hidden (equal to the “Never” value).

|

| | CurrentDate |

The time indicator is displayed only in the Today date’s column.

|

| | DaysBeforeToday |

The time indicator is drawn only if the current interval includes the today date (same as in “TodayView” mode), and only inside columns that precede the today column.

|

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TimeIndicatorVisibility property.

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.

wpf-scheduler-highlight-time-intervals/CS/SchedulerCellTemplate/MainWindow.xaml#L28

xml
<dxsch:DayView
    x:Name="dayView" ResourcesPerPage="2" TimeIndicatorVisibility="Never" TimeMarkerVisibility="Never"
    TimeRegionVisibility="{DXBinding Expr='HighlightLunchHours? $dxsch:TimeRegionVisibility.Always : $dxsch:TimeRegionVisibility.Never'}"

See Also

ShowTimeIndicatorOverAppointment

DayViewBase Class

DayViewBase Members

DevExpress.Xpf.Scheduling Namespace