CalendarView.BlackoutForeground Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.