共用方式為


CalendarView.BlackoutForeground 屬性

定義

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

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

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

屬性值

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

備註

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

適用於

另請參閱