mobilecontrols-devexpress-dot-xamarinforms-dot-scheduler-edfb0f2d.md
The storage for appearance settings values of an individual day view cell‘s representation.
Namespace : DevExpress.XamarinForms.Scheduler
Assembly : DevExpress.XamarinForms.Scheduler.dll
NuGet Package : DevExpress.XamarinForms.Scheduler
public class DayViewCellViewModel :
CellViewModel
The Scheduler View uses this class is the following occurrences:
This view model provides the following settings that you can customize:
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>
class DayViewCellCustomizer : IDayViewCellCustomizer {
public void Customize(DayViewCellViewModel cell) {
if (cell.Interval.Start.DayOfWeek == DayOfWeek.Friday) {
cell.BackgroundColor = Color.Blue;
}
}
}
|
Symbol
|
Description
| | --- | --- | |
|
Gets or sets appearance settings of cells.
| |
|
The storage for the day view cell appearance settings.
| |
|
Gets or sets the object that customizes the day view cell’s appearance depending on internal logic.
| |
|
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.
|
Object DevExpress.XamarinForms.Scheduler.Internal.NotifyPropertyChangedBase ItemViewModel CellViewModel DayViewCellViewModel
See Also