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。 有关详细信息,请参阅 更新日历日项目

适用于

另请参阅