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

<dxsch:DayView DayCount="{Binding DaysCount, Mode=TwoWay}" Start="{Binding Start}" Tap="DayView_OnTap">
    <dxsch:DayView.DataStorage>
        <dxsch:SchedulerDataStorage x:Name="storage">
            <dxsch:SchedulerDataStorage.DataSource>
                <dxsch:DataSource AppointmentsSource="{Binding Appointments}">
                    <dxsch:DataSource.AppointmentMappings>
                        <dxsch: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" />
                    </dxsch:DataSource.AppointmentMappings>
                </dxsch:DataSource>
            </dxsch:SchedulerDataStorage.DataSource>
        </dxsch:SchedulerDataStorage>
    </dxsch:DayView.DataStorage>
</dxsch:DayView>
See Also