Skip to main content

WeekView Class

The view that displays all appointments for a specific week.

Namespace: DevExpress.Maui.Scheduler

Assembly: DevExpress.Maui.Scheduler.dll

NuGet Package: DevExpress.Maui.Scheduler

Declaration

public class WeekView :
    DayViewBase,
    IDXViewController

Remarks

The image below highlights elements the view includes:

Work Week View Sample

  1. Time Ruler
  2. Time Ruler Cell
  3. Time Ruler Header
  4. Header Item
  5. All Day Area
  6. All Day Appointment
  7. All Day Cell
  8. Appointment
  9. Day Cell

Note

The FirstDayOfWeek property specifies the first day of the week.

The following table lists basic settings that configure the view:

Property

Description

ShowWorkTimeOnly

Gets or sets whether the View should show only WorkTime. This is a bindable property.

SnapToCellsMode

Gets or sets how the View snaps the scheduler’s appointments. This is a bindable property.

Example

The following example shows appointments for a week:

DevExpress Scheduler for MAUI - Customize week view

View Example

<dx:WeekView Start="{Binding Start}" Tap="WeekView_OnTap">
    <dx:WeekView.DataStorage>
        <dx:SchedulerDataStorage x:Name="storage">
            <dx:SchedulerDataStorage.DataSource>
                <dx:DataSource AppointmentsSource="{Binding Appointments}">
                    <dx:DataSource.AppointmentMappings>
                        <dx:AppointmentMappings Type="AppointmentType"
                                                   AllDay="AllDay"
                                                   Start="Start"
                                                   End="End"
                                                   Id="Id"
                                                   Description="Description"
                                                   Location="Location"
                                                   RecurrenceInfo="RecurrenceInfo"
                                                   StatusId="Status"
                                                   Subject="Subject"
                                                   LabelId="Label" />
                    </dx:DataSource.AppointmentMappings>
                </dx:DataSource>
            </dx:SchedulerDataStorage.DataSource>
        </dx:SchedulerDataStorage>
    </dx:WeekView.DataStorage>
</dx:WeekView>

Inheritance

See Also