Back to Devexpress

DayViewBase.TimeRulers Property

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

latest2.2 KB
Original Source

DayViewBase.TimeRulers Property

Gets or sets the collection of TimeRuler objects for the current 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 TimeRulerCollection TimeRulers { get; set; }
vb
Public Property TimeRulers As TimeRulerCollection

Property Value

TypeDescription
DevExpress.Xpf.Scheduling.TimeRulerCollection

A DevExpress.Xpf.Scheduling.TimeRulerCollection object that is a collection of time rulers within the view.

|

Remarks

The TimeRulers property allows you to specify a collection of time rulers displayed in the Day View, Work Week View, or Week View. Use the collection’s properties and methods to manage individual collection items (add or remove time rulers).

The following example demonstrates how to add a time ruler to the Day View view:

xaml
<dxsch:DayView x:Name="dayView">
    <dxsch:DayView.TimeRulers>
        <dxsch:TimeRulerCollection>
            <dxsch:TimeRuler Caption="GMT" TimeZone="GMT Standard Time"/>
        </dxsch:TimeRulerCollection>
    </dxsch:DayView.TimeRulers>
</dxsch:DayView>

See Also

TimeRulersSource

TimeRulerTemplate

DayViewBase Class

DayViewBase Members

DevExpress.Xpf.Scheduling Namespace