Share via


CalendarView.BlackoutBackground 屬性

定義

取得或設定筆刷,提供無法選取之日期的背景。

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

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

屬性值

筆刷,提供無法選取之日期的背景。

Windows 需求

裝置系列
Windows 11 (已於 10.0.22000.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v14.0 引進)

備註

若要將日期標示為不可選取,請將 CalendarViewDayItem.IsBlackout 屬性設定為 true 。 如需詳細資訊,請參閱 更新行事曆日專案

適用於

另請參閱