Back to Devexpress

WeekView Class

maui-devexpress-dot-maui-dot-scheduler-6d8c5185.md

latest5.8 KB
Original Source

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

csharp
[DXLicenseMAUI]
public class WeekView :
    DayViewBase,
    IDXViewController

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

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:

View Example

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

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 WeekView

Extension Methods

Yield<WeekView>()

YieldIfNotNull<WeekView>()

See Also

WeekView Members

DevExpress.Maui.Scheduler Namespace