Back to Devexpress

AllDayAreaCellStyle Class

mobilecontrols-devexpress-dot-xamarinforms-dot-scheduler.md

latest4.7 KB
Original Source

AllDayAreaCellStyle Class

The storage for All day area cells’ appearance settings.

Namespace : DevExpress.XamarinForms.Scheduler

Assembly : DevExpress.XamarinForms.Scheduler.dll

NuGet Package : DevExpress.XamarinForms.Scheduler

Declaration

csharp
public class AllDayAreaCellStyle :
    CellStyle

The following members return AllDayAreaCellStyle objects:

Remarks

The DayView, WorkWeekView and WeekView use this class to store all day area cells’ settings. The style configures the following cell types:

  1. Regular All-Day Area Cell
  2. Today All-Day Cell

The style provides the following settings that manage the all-day cell’s appearance:

Example

This example demonstrates how to use the all-day area cell style and its customizer to modify the cell’s appearance.

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

|

Symbol

|

Description

| | --- | --- | |

DayViewBase.AllDayCellStyle

|

Gets or sets appearance settings of all-day cells.

| |

AllDayAreaCellStyle

|

The storage for All day area cells’ appearance settings.

| |

AllDayAreaCellStyle.Customizer

|

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

| |

IAllDayAreaCellCustomizer

|

The interface that should implement a class that 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.

|

Inheritance

Object DevExpress.XamarinForms.Scheduler.Internal.SchedulerElement ItemStyle CellStyle AllDayAreaCellStyle

See Also

AllDayAreaCellStyle Members

DevExpress.XamarinForms.Scheduler Namespace