Share via


CalendarView.BlackoutForeground Property

Definition

Gets or sets a brush that provides the foreground of a date that can't be selected.

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>

Property Value

A brush that provides the foreground of a date that can't be selected.

Remarks

To mark a date as not selectable, set the CalendarViewDayItem.IsBlackout property to true. For more information, see Updating calendar day items.

Applies to

See also