Back to Devexpress

AllDayAreaCellViewModel Class

maui-devexpress-dot-maui-dot-scheduler-0d78e5d3.md

latest4.3 KB
Original Source

AllDayAreaCellViewModel Class

The storage for appearance settings values of an individual all-day area cell’s representation.

Namespace : DevExpress.Maui.Scheduler

Assembly : DevExpress.Maui.Scheduler.dll

NuGet Package : DevExpress.Maui.Scheduler

Declaration

csharp
public class AllDayAreaCellViewModel :
    CellViewModel

Remarks

The Scheduler View uses this class in the following occurrences:

This view model provides the following settings that you can customize:

Example

This example uses the AllDayCellAppearance class and its customizer to modify the cell’s appearance.

xml
<dxs:WorkWeekView.AllDayCellAppearance>
    <dxs:AllDayAreaCellAppearance
        LeftBorderThickness="2"
        BottomBorderThickness="2"
        BorderColor="#e1e1e1"
        BackgroundColor="White"
        TodayBackgroundColor="#4fc3f7">
        <dxs:AllDayAreaCellAppearance.Customizer>
            <views:AllDayAreaCellCustomizer/>
        </dxs:AllDayAreaCellAppearance.Customizer>
    </dxs:AllDayAreaCellAppearance>
</dxs:WorkWeekView.AllDayCellAppearance>
csharp
class AllDayAreaCellCustomizer : IAllDayAreaCellCustomizer {
    public void Customize(AllDayAreaCellViewModel cell) {
        if (cell.Interval.Start.DayOfWeek == DayOfWeek.Friday) {
            cell.BackgroundColor = Colors.Blue;
        }
    }
}

|

Symbol

|

Description

| | --- | --- | |

DayViewBase.AllDayCellAppearance

|

Gets or sets the appearance settings of all-day cells. This is a bindable property.

| |

AllDayAreaCellAppearance

|

Contains appearance properties for the all day appointment‘s cell.

| |

AllDayAreaCellAppearance.Customizer

|

Gets or sets the object that customizes the all-day area cell’s appearance depending on internal logic. This is a bindable property.

| |

IAllDayAreaCellCustomizer

|

If implemented by a class, modifies appearance settings of individual all-day area cells.

| |

IAllDayAreaCellCustomizer.Customize(AllDayAreaCellViewModel)

|

Modifies appearance settings of an individual all-day area cell.

| |

AllDayAreaCellViewModel

|

The storage for appearance settings values of an individual all-day area cell’s representation.

|

Implements

INotifyPropertyChanged

INotifyPropertyChanging

Inheritance

System.Object DevExpress.Maui.Scheduler.Internal.NotifyPropertyChangedBase ItemViewModel CellViewModel AllDayAreaCellViewModel

Extension Methods

Yield<AllDayAreaCellViewModel>()

YieldIfNotNull<AllDayAreaCellViewModel>()

See Also

AllDayAreaCellViewModel Members

DevExpress.Maui.Scheduler Namespace