CalendarView.BlackoutForeground Property
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);
C#
public Brush BlackoutForeground { get; set; }
var brush = calendarView.blackoutForeground;
calendarView.blackoutForeground = brush;
Public Property BlackoutForeground As Brush
XAML
<CalendarView BlackoutForeground="{StaticResource resourceName}"/>
- or -
<CalendarView BlackoutForeground="colorString"/>
- or -
<CalendarView>
CalendarView.BlackoutForeground>singleBrush</CalendarView.BlackoutForeground>
</CalendarView>
A brush that provides the foreground of a date that can't be selected.
To mark a date as not selectable, set the CalendarViewDayItem.IsBlackout property to true
. For more information, see Updating calendar day items.
Product | Versions |
---|---|
Windows App SDK | 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 |