Calendar.FirstDayOfWeek Property

Definition

Gets or sets the day that is considered the beginning of the week.

C#
public DayOfWeek FirstDayOfWeek { get; set; }

Property Value

A DayOfWeek that represents the beginning of the week. The default is the FirstDayOfWeek that is determined by the current culture.

Examples

The following example sets the FirstDayOfWeek property to Monday.

XAML
<Calendar Margin="20" 
          DisplayDate="3/23/09" SelectedDate="3/23/09"
          DisplayDateStart="1/01/09" DisplayDateEnd="12/31/09"
          FirstDayOfWeek="Monday"/>

Remarks

Dependency Property Information

Item Value
Identifier field FirstDayOfWeekProperty
Metadata properties set to true None

XAML Attribute Usage

<Calendar FirstDayOfWeek="DayOfWeek"/>

Applies to

Produkt Verzie
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10