CalendarView.TodayBackground 属性

定义

获取或设置一个画笔,该画笔提供日历中当前日期的背景。

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>

属性值

提供日历中当前日期的背景的画笔。

Windows 要求

设备系列
Windows 11 (在 10.0.22000.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v14.0 中引入)

适用于