Skip to main content

TimeIndicator Class

A horizontal line that marks the specified time value.

Namespace: DevExpress.WinUI.Scheduler

Assembly: DevExpress.WinUI.Scheduler.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[Bindable]
public class TimeIndicator :
    LogicalContentElement<ViewBase>

Remarks

The image below shows a time indicator.

Scheduler Time Indicator

The DayView, WorkWeekView, WeekView can display time indicators. Use the view’s TimeIndicators property to access the collection of time indicators. This collection initially contains an indicator that displays the current time (its TrackCurrentTime property is set to true). To add new time indicators in XAML while preserving the default indicator, add them directly to the TimeIndicators content. The code snippet below illustrates this scenario.

<dxsch:DayView >
    <dxsch:DayView.TimeIndicators>
      <dxsch:TimeIndicator />
   </dxsch:DayView.TimeIndicators>
</dxsch:DayView>

To remove the default time indicator, add a new TimeIndicatorCollection to the TimeIndicators property. See the code snippet below.

<dxsch:DayView >
    <dxsch:DayView.TimeIndicators>
        <dxsch:TimeIndicatorCollection>
            <dxsch:TimeIndicator />
        </dxsch:TimeIndicatorCollection>
    </dxsch:DayView.TimeIndicators>
</dxsch:DayView>

Inheritance

Object
DependencyObject
DevExpress.WinUI.Core.Internal.LogicalElement
DevExpress.WinUI.Core.Internal.LogicalContentElement
DevExpress.WinUI.Core.Internal.LogicalContentElement<DevExpress.WinUI.Scheduler.Internal.ViewBase>
TimeIndicator
See Also