Skip to main content

DayViewBase.CellAppearance Property

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

Namespace: DevExpress.Maui.Scheduler

Assembly: DevExpress.Maui.Scheduler.dll

NuGet Package: DevExpress.Maui.Scheduler

Declaration

public DayViewCellAppearance CellAppearance { get; set; }

Property Value

Type Description
DayViewCellAppearance

The storage of cell appearance settings.

Remarks

Refer to the following topic to see the available appearance properties: DayViewCellAppearance members.

The class configures the following cell types:

Day cell types

  1. TimeScaleInterval defines scale intervals into which the view splits its time interval (the whole day or WorkTime only). Slots divide intervals into cells (2, 3). The TimeScaleSlotCount property specifies the number of slots within a scale interval.
  2. Interval Day View Cell - a cell that corresponds to the first slot in a scale interval.
  3. Slot Day View Cell - all other cells.
  4. Work Time Day View Cell - a cell within the WorkTime interval. These cells can be either Interval or Slot.
  5. Today Time Day View Cell. These cells can be either Interval or Slot.

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

Day Cell Style Settings

Example

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

<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>
class DayViewCellCustomizer : IDayViewCellCustomizer {
    public void Customize(DayViewCellViewModel cell) {
        if (cell.Interval.Start.DayOfWeek == DayOfWeek.Friday) {
            cell.BackgroundColor = Colors.Blue;
        }
    }
}

Scheduler - Day Appearance

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.

See Also