CalendarView.BlackoutForeground Property

Definition

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

C#
public Brush BlackoutForeground { get; set; }
XAML
<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

Produk Versi
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also