Back to Devexpress

IDayViewCellCustomizer Interface

maui-devexpress-dot-maui-dot-scheduler-7fe7e973.md

latest3.3 KB
Original Source

IDayViewCellCustomizer Interface

If implemented by a class, modifies appearance settings of individual Day View cells.

Namespace : DevExpress.Maui.Scheduler

Assembly : DevExpress.Maui.Scheduler.dll

NuGet Package : DevExpress.Maui.Scheduler

Declaration

csharp
public interface IDayViewCellCustomizer

The following members return IDayViewCellCustomizer objects:

Example

This example uses the day view cell’s appearance and its customizer to modify the cell’s appearance.

xml
<dxs:WorkWeekView.CellAppearance>
    <dxs:DayViewCellAppearance 
        LeftBorderThickness="2"
        BottomBorderThickness="2"
        BorderColor = "#e1e1e1"
        SlotBorderColor="#f0f0f0"
        BackgroundColor="#f5f5f5"
        WorkTimeBackgroundColor="White"
        TodayBackgroundColor="#4fc3f7">
        <dxs:DayViewCellAppearance.Customizer>
            <views:DayViewCellCustomizer/>
        </dxs:DayViewCellAppearance.Customizer>
    </dxs:DayViewCellAppearance> 
</dxs:WorkWeekView.CellAppearance>
csharp
class DayViewCellCustomizer : IDayViewCellCustomizer {
    public void Customize(DayViewCellViewModel cell) {
        if (cell.Interval.Start.DayOfWeek == DayOfWeek.Friday) {
            cell.BackgroundColor = Colors.Blue;
        }
    }
}

|

Symbol

|

Description

| | --- | --- | |

DayViewBase.CellAppearance

|

Gets or sets appearance settings of cells. This is a bindable property.

| |

DayViewCellAppearance

|

The storage for the day view cell appearance settings.

| |

DayViewCellAppearance.Customizer

|

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

| |

IDayViewCellCustomizer

|

If implemented by a class, modifies appearance settings of individual Day View cells.

| |

IDayViewCellCustomizer.Customize(DayViewCellViewModel)

|

Modifies appearance settings of an individual Day View cell.

| |

DayViewCellViewModel

|

The storage for the appearance settings values of an individual day view cell.

|

Extension Methods

Yield<IDayViewCellCustomizer>()

YieldIfNotNull<IDayViewCellCustomizer>()

See Also

IDayViewCellCustomizer Members

DevExpress.Maui.Scheduler Namespace