Determines whether leading and trailing days are displayed on the first and last visible months.
This example configures the control to display only the current month, and only days that fall in that month (no leading or trailing days).
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
'Declaration
Public Property TrailingDaysVisible As Boolean
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;
}
'Declaration
Public Property TrailingDaysVisible As Boolean
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