When set to true, the earliest Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth will display leading days, that is, the last few days of the previous month. The latest Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth will display trailing days, that is, the first few days of the next month.
To determine whether a Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth has leading and/or trailing days displayed, check the Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth.ShowsLeadingDays and Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth.ShowsTrailingDays respectively.
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.MonthViewMulti Private Sub ShowCurrentMonthOnly() ' Get the current month Dim month As Infragistics.Win.UltraWinSchedule.Month month = Me.ultraMonthViewMulti1.CalendarInfo.GetMonth(DateTime.Today) ' Set the control's FirstMonth property to the current month Me.ultraMonthViewMulti1.FirstMonth = month ' Set the MonthDimensions property to only display one month Me.ultraMonthViewMulti1.MonthDimensions = New Size(1, 1) ' Set the TrailingDaysVisible property to false so that only days ' that fall in the month being displayed are visible Me.ultraMonthViewMulti1.TrailingDaysVisible = False ' Set the PlaceHoldersVisible property to false, so that if the ' BorderStyleDay property is set a value other than None, borders ' are not drawn for the leading and trailing days Me.ultraMonthViewMulti1.PlaceHoldersVisible = False ' Hide the scroll buttons, so the user cannot change which ' month is being displayed Me.ultraMonthViewMulti1.ScrollButtonsVisible = False End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.MonthViewMulti; private void ShowCurrentMonthOnly() { // Get the current month Infragistics.Win.UltraWinSchedule.Month month; month = this.ultraMonthViewMulti1.CalendarInfo.GetMonth( DateTime.Today ); // Set the control's FirstMonth property to the current month this.ultraMonthViewMulti1.FirstMonth = month; // Set the MonthDimensions property to only display one month this.ultraMonthViewMulti1.MonthDimensions = new Size( 1, 1 ); // Set the TrailingDaysVisible property to false so that only days // that fall in the month being displayed are visible this.ultraMonthViewMulti1.TrailingDaysVisible = false; // Set the PlaceHoldersVisible property to false, so that if the // BorderStyleDay property is set a value other than None, borders // are not drawn for the leading and trailing days this.ultraMonthViewMulti1.PlaceHoldersVisible = false; // Hide the scroll buttons, so the user cannot change which // month is being displayed this.ultraMonthViewMulti1.ScrollButtonsVisible = false; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2