Back to Devexpress

DayViewBase.TimeMarkerVisibility Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-dayviewbase-165a73e9.md

latest2.6 KB
Original Source

DayViewBase.TimeMarkerVisibility Property

Gets or sets the time marker’s visibility for all time rulers in the 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 TimeMarkerVisibility TimeMarkerVisibility { get; set; }
vb
Public Property TimeMarkerVisibility As TimeMarkerVisibility

Property Value

TypeDescription
TimeMarkerVisibility

A TimeMarkerVisibility enumeration member. The default is TimeMarkerVisibility.TodayView

|

Available values:

NameDescription
Never

TimeMarker is always hidden.

| | Always |

TimeMarker is always displayed.

| | TodayView |

Displays the time marker if the view contains the current date.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TimeMarkerVisibility 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

DayViewBase Class

DayViewBase Members

DevExpress.Xpf.Scheduling Namespace