Share via


CalendarView.TodayBackground Property

Definition

Gets or sets a brush that provides the background of the current date in the calendar.

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

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

Property Value

A brush that provides the background of the current date in the calendar.

Windows requirements

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

Applies to