Scheduler for WPF
C1Calendar の要素
C1Calendar コントロールの使い方 > C1Calendar の要素

C1Calendar のユーザーインターフェイスは、次の3つの主要部分を抽象化して示します。

  1. 月内の日付を一覧表示するペイン

  2. 曜日名を一覧表示するペイン

  3. 現在の年/月の選択を管理する UI を表すコマンドペイン

日付のリストは、ListBox クラスを継承するC1CalendarItemPresenter オブジェクトによって表されます。C1CalendarItemPresenter クラスのインスタンスは、C1Calendar のテンプレートビジュアルツリー内で、カレンダー日のパネルを表示する場所を定義するために使用されます。

C1Calendar は、Year プロパティと Month プロパティに対応するカレンダー日のセルを表す(DaySlotPresenter クラスの)UI 要素を生成します。これらの DaySlotPresenter 要素の実際の UI は、DaySlotTemplate プロパティで定義されます。これらの要素は、DaysPanel プロパティで UI が定義されるパネルの子要素になります。

メモ: 通常のカレンダーは6週間の行で構成され、各行は7日間で構成されます。つまり、6 * 7 = 42 日分のセル(スロット)があります。一部のセルは空のセルで、日付は表しません。
Note: C1Calendar is a part of C1.WPF.Schedule.4.5.2 assembly only so it can be used directly without using any other assembly. However, it is not a part of the C1.WPF.Scheduler (.NET 6) assembly. Therefore, in order to use C1Calendar with the Scheduler control for .NET 6, you need to use the C1.WPF.Calendar assembly.