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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for