Skip to main content

DayViewBase.TimeIndicators Property

Specifies the collection of time indicators displayed by the view. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Scheduler.Internal

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

NuGet Package: DevExpress.Uwp.Controls

Declaration

public TimeIndicatorCollection TimeIndicators { get; set; }

Property Value

Type Description
DevExpress.UI.Xaml.Scheduler.TimeIndicatorCollection

A DevExpress.UI.Xaml.Scheduler.TimeIndicatorCollection object that stores TimeIndicator instances.

Remarks

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 preserving the default one, 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>
See Also