Skip to main content

DayView Class

The view that displays appointments for a specific day or several days.

Namespace: DevExpress.Maui.Scheduler

Assembly: DevExpress.Maui.Scheduler.dll

NuGet Package: DevExpress.Maui.Scheduler

Declaration

public class DayView :
    DayViewBase

Remarks

The image below highlights elements the View includes:

Day View Elements

  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

The following table lists basic settings that configure the view:

Property

Description

DayCount

Gets or sets the number of days the Day View displays. This is a bindable property.

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 day:

DevExpress Scheduler for MAUI - Customize DayView

View Example

<dx:DayView DayCount="{Binding DaysCount, Mode=TwoWay}" Start="{Binding Start}" Tap="DayView_OnTap">
    <dx:DayView.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"
                                                   TimeZoneId="TimeZoneId" />
                    </dx:DataSource.AppointmentMappings>
                </dx:DataSource>
            </dx:SchedulerDataStorage.DataSource>
        </dx:SchedulerDataStorage>
    </dx:DayView.DataStorage>
</dx:DayView>

Inheritance

See Also