Udostępnij za pośrednictwem


CalendarView.TodayPressedBackground Property

Definition

Gets or sets a brush that provides the background of the current date when it is pressed.

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

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

Property Value

A brush that provides the background of the current date when it is pressed.

Windows requirements

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

Applies to