Skip to main content
A newer version of this page is available. .

DayViewCellStyle.WorkTimeBackgroundColor Property

Gets or sets the color the Day-based views uses to paint a day view cell’s background when the cell is in work time of work days.

Namespace: DevExpress.XamarinForms.Scheduler

Assembly: DevExpress.XamarinForms.Scheduler.dll

Declaration

public Color WorkTimeBackgroundColor { get; set; }

Property Value

Type Description
Color

The color the Day-based views uses to paint a day view cell’s background when the cell is in work time of work days.

Example

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

<dxs:WorkWeekView.CellStyle>
    <dxs:DayViewCellStyle 
        LeftBorderThickness="2"
        BottomBorderThickness="2"
        BorderColor = "#e1e1e1"
        SlotBorderColor="#f0f0f0"
        BackgroundColor="#f5f5f5"
        WorkTimeBackgroundColor="White"
        TodayBackgroundColor="#4fc3f7">
        <dxs:DayViewCellStyle.Customizer>
            <views:DayViewCellCustomizer/>
        </dxs:DayViewCellStyle.Customizer>
    </dxs:DayViewCellStyle> 
</dxs:WorkWeekView.CellStyle>

Symbol

Description

DayViewBase.CellStyle

Gets or sets appearance settings of cells.

DayViewCellStyle

The storage for day view cells’ appearance settings.

DayViewCellStyle.Customizer

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

IDayViewCellCustomizer

The interface that should implement a class that modifies appearance settings of individual Day View cells.

IDayViewCellCustomizer.Customize(DayViewCellViewModel)

Modifies appearance settings of an individual Day View cell.

DayViewCellViewModel

The storage for appearance settings values of an individual day view cell‘s representation.

See Also