Back to Devexpress

DayView Class

maui-devexpress-dot-maui-dot-scheduler-8a551658.md

latest5.9 KB
Original Source

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

csharp
[DXLicenseMAUI]
public class DayView :
    DayViewBase

Remarks

The image below highlights elements the View includes:

  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:

View Example

xaml
<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>

Implements

Show 14 items

INotifyPropertyChanged

IAnimatable

Microsoft.Maui.Controls.ITabStopElement

IViewController

IVisualElementController

IElementController

IGestureController

IGestureRecognizers

IPropertyMapperView

IHotReloadableView

IView

Microsoft.Maui.IFrameworkElement

ITransform

IReplaceableView

Inheritance

System.Object BindableObject Element NavigableElement VisualElement View DevExpress.Maui.Core.Internal.DXViewElement ViewBase DayViewBase DayView

Extension Methods

Yield<DayView>()

YieldIfNotNull<DayView>()

See Also

DayView Members

DevExpress.Maui.Scheduler Namespace