'宣言 Public Property ScrollButtonVisibility As Visibility
public Visibility ScrollButtonVisibility {get; set;}
ScrollButtonVisibility は、コントロールの CalendarItemGroup インスタンスが前および次のスクロールボタンを表示するかどうかを示します。XamMonthCalendar のデフォルト テンプレートがコントロールで表示されるグループを自動生成する CalendarItemGroupPanel を使用されます。スクロール ボタンを表示するときに、左上のグループの前にスクロールと右上グループの次へ、スクロールがスクロール ボタンを表示することを確認します。XamMonthCalendar を直接的に CalendarItemGroup を含むために再テンプレートする場合、ScrollPreviousButtonVisibility や ScrollNextButtonVisibility をこのプロパティにバインドする必要があります。
Imports Infragistics.Windows.Editors Imports Infragistics.Windows.Controls Private Sub InitializeCalendar(ByVal calendar As XamMonthCalendar) ' show the week numbers - by default week numbers are not shown calendar.WeekNumberVisibility = Visibility.Visible ' hide the today button - by default it is shown calendar.TodayButtonVisibility = Visibility.Collapsed ' by default the day of week headers are displayed calendar.DayOfWeekHeaderVisibility = Visibility.Visible ' the DayOfWeekHeaderFormat provides several options for ' how much text is displayed for the day of week headers. ' this defaults to 2 characters calendar.DayOfWeekHeaderFormat = DayOfWeekHeaderFormat.SingleCharacter ' hide the scroll buttons - by default they are displayed in the ' upper left and upper right CalendarItemGroups calendar.ScrollButtonVisibility = Visibility.Collapsed End Sub
using Infragistics.Windows.Editors; using Infragistics.Windows.Controls; private void InitializeCalendar(XamMonthCalendar calendar) { // show the week numbers - by default week numbers are not shown calendar.WeekNumberVisibility = Visibility.Visible; // hide the today button - by default it is shown calendar.TodayButtonVisibility = Visibility.Collapsed; // by default the day of week headers are displayed calendar.DayOfWeekHeaderVisibility = Visibility.Visible; // the DayOfWeekHeaderFormat provides several options for // how much text is displayed for the day of week headers. // this defaults to 2 characters calendar.DayOfWeekHeaderFormat = DayOfWeekHeaderFormat.SingleCharacter; // hide the scroll buttons - by default they are displayed in the // upper left and upper right CalendarItemGroups calendar.ScrollButtonVisibility = Visibility.Collapsed; }