共用方式為


Calendar.FirstDayOfWeek 屬性

定義

取得或設定視為一週開頭的那一天。

public:
 property DayOfWeek FirstDayOfWeek { DayOfWeek get(); void set(DayOfWeek value); };
public DayOfWeek FirstDayOfWeek { get; set; }
member this.FirstDayOfWeek : DayOfWeek with get, set
Public Property FirstDayOfWeek As DayOfWeek

屬性值

DayOfWeek,表示一週的開頭。 預設為目前文化特性所決定的 FirstDayOfWeek

範例

下列範例會將 FirstDayOfWeek 屬性設定為 Monday

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

備註

相依性屬性資訊

識別碼欄位 FirstDayOfWeekProperty
設定為 的中繼資料屬性 true

XAML Attribute Usage

<Calendar FirstDayOfWeek=「」 DayOfWeek />

適用於