Dela via


CalendarView.DisabledForeground Property

Definition

Gets or sets a brush that provides the foreground of a calendar item that is disabled.

public:
 property Brush ^ DisabledForeground { Brush ^ get(); void set(Brush ^ value); };
Brush DisabledForeground();

void DisabledForeground(Brush value);
public Brush DisabledForeground { get; set; }
var brush = calendarView.disabledForeground;
calendarView.disabledForeground = brush;
Public Property DisabledForeground As Brush
<CalendarView CalendarItemDisabledForeground="{StaticResource resourceName}"/>
- or -
<CalendarView CalendarItemDisabledForeground="colorString"/>
- or -
<CalendarView>
  CalendarView.CalendarItemDisabledForeground>singleBrush</CalendarView.CalendarItemDisabledForeground>
</CalendarView>

Property Value

A brush that provides the foreground of a calendar item that is disabled.

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Applies to