CalendarView.BlackoutBackground 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 background of a date that can't be selected.
public:
property Brush ^ BlackoutBackground { Brush ^ get(); void set(Brush ^ value); };
Brush BlackoutBackground();
void BlackoutBackground(Brush value);
public Brush BlackoutBackground { get; set; }
var brush = calendarView.blackoutBackground;
calendarView.blackoutBackground = brush;
Public Property BlackoutBackground As Brush
<CalendarView BlackoutBackground="{StaticResource resourceName}"/>
- or -
<CalendarView BlackoutBackground="colorString"/>
- or -
<CalendarView>
CalendarView.BlackoutBackground>singleBrush</CalendarView.BlackoutBackground>
</CalendarView>
Property Value
A brush that provides the background 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.