Skip to main content

Lesson 2: Configure Scheduler View

Each scheduler view object provides a set of properties you can use to configure the view.

Open the solution created in Lesson 1 and adjust the following settings of the work week view that shows medical appointments:

Property

Description

Start

Gets or sets the scheduler start date.

FirstDayOfWeek

Gets or sets the day from which the scheduler starts a week.

WorkDays

Gets or sets days that form a work week.

WorkTime

Gets or sets the work time interval for the Day View, Work Week View and Week View.

ShowWorkTimeOnly

Gets or sets whether the View should show only WorkTime.

TimeScaleInterval

Gets or sets the interval between two major time tickmarks.

TimeScaleSlotCount

Gets or sets the number of slots (minor time intervals) in a TimeScaleInterval (major time interval).

SnapToCellsMode

Gets or sets how the View snaps the scheduler’s appointments.

<dxsch:WorkWeekView Start="{Binding StartDate}"
                    FirstDayOfWeek="Monday"
                    WorkDays="Monday,Tuesday,Wednesday,Friday" 
                    WorkTime="7:00:00-19:00:00"
                    ShowWorkTimeOnly="True"
                    TimeScaleInterval="01:00:00"
                    TimeScaleSlotCount="4"
                    SnapToCellsMode="Never">
    <dxsch:WorkWeekView.DataStorage>
        <!-- ... -->
    </dxsch:WorkWeekView.DataStorage>
</dxsch:WorkWeekView>

The scheduler displays appointments in a work week view with the specified settings.

Work Week View

The next lesson explains how to make the scheduler show the Edit Appointment form when a user taps an appointment or time cell.