Back to Devexpress

MonthView Class

maui-devexpress-dot-maui-dot-scheduler-fd805754.md

latest5.1 KB
Original Source

MonthView Class

The View that displays all appointments for a month.

Namespace : DevExpress.Maui.Scheduler

Assembly : DevExpress.Maui.Scheduler.dll

NuGet Package : DevExpress.Maui.Scheduler

Declaration

csharp
[DXLicenseMAUI]
public class MonthView :
    ViewBase,
    IAppearanceOwner

Remarks

The image below highlights elements the View includes:

  1. Header Item
  2. Cell
  3. Appointment

The following table lists basic settings that configure the view:

|

Property

|

Description

| | --- | --- | |

ShowWorkDaysOnly

|

Gets or sets whether the view shows only workdays. This is a bindable property.

| |

WeekCount

|

Gets or sets a number of weeks that the View shows on the screen at one time. This is a bindable property.

|

Example

The following example shows appointments for a month:

View Example

xaml
<dx:MonthView x:Name="monthView" Start="{Binding Start, Mode=TwoWay}" Tap="MonthView_OnTap">
    <dx:MonthView.DataStorage>
        <dx:SchedulerDataStorage>
            <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:MonthView.DataStorage>
</dx:MonthView>

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 MonthView

Extension Methods

Yield<MonthView>()

YieldIfNotNull<MonthView>()

See Also

MonthView Members

DevExpress.Maui.Scheduler Namespace