CalendarView.CalendarItemDisabledBackground Property

Definition

Gets or sets a brush that provides the background of a calendar item that is disabled.

public:
 property Brush ^ CalendarItemDisabledBackground { Brush ^ get(); void set(Brush ^ value); };
Brush CalendarItemDisabledBackground();

void CalendarItemDisabledBackground(Brush value);
public Brush CalendarItemDisabledBackground { get; set; }
var brush = calendarView.calendarItemDisabledBackground;
calendarView.calendarItemDisabledBackground = brush;
Public Property CalendarItemDisabledBackground As Brush
<CalendarView CalendarItemDisabledBackground="{StaticResource resourceName}"/>
- or -
<CalendarView CalendarItemDisabledBackground="colorString"/>
- or -
<CalendarView>
  CalendarView.CalendarItemDisabledBackground>singleBrush</CalendarView.CalendarItemDisabledBackground>
</CalendarView>

Property Value

A brush that provides the background of a calendar item that is disabled.

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Applies to