Skip to main content

TimeIndicator Class

A horizontal line that marks the specified time value.

Namespace: DevExpress.UI.Xaml.Scheduler

Assembly: DevExpress.UI.Xaml.Scheduler.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

[Bindable]
public class TimeIndicator :
    LogicalContentElement<ViewBase>

Remarks

The image below shows a time indicator.

Win10 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>

The view’s DayViewBase.TimeIndicatorVisibility property specifies days for which to display time indicators.

The view’s DayViewBase.ShowTimeIndicatorOverAppointment property specifies whether time indicators overlap appointments.

Inheritance

Object
DependencyObject
DevExpress.UI.Xaml.Internal.LogicalElement
DevExpress.UI.Xaml.Internal.LogicalContentElement
DevExpress.UI.Xaml.Internal.LogicalContentElement<DevExpress.UI.Xaml.Scheduler.Internal.ViewBase>
TimeIndicator
See Also