CalendarView.CalendarItemDisabledBackground 属性

定义

获取或设置一个画笔,该画笔提供禁用的日历项的背景。

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>

属性值

提供已禁用日历项的背景的画笔。

Windows 要求

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

适用于