Version

PlaceHoldersVisible Property

Determines whether day uielement placeholders are displayed.
Syntax
'Declaration
 
Public Property PlaceHoldersVisible As Boolean
public bool PlaceHoldersVisible {get; set;}
Remarks

By default Infragistics.Win.UltraWinSchedule.MonthViewMulti.DayUIElement objects are only created for Day objects that are part of that Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth unless TrailingDaysVisible is true, in which case the leading days for the first Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth will show days from the previous month and the last Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth will shows days from the subsequent month. Therefore when BorderStyleDay is set to a value that resolves to something other than None, spaces may appear in a week where there are no Infragistics.Win.UltraWinSchedule.MonthViewMulti.DayUIElement objects. When the PlaceHoldersVisible is set to true, the visible weeks will have a Infragistics.Win.UltraWinSchedule.MonthViewMulti.DayPlaceHolderUIElement in the location for each empty slot providing more of a grid-like appearance for the month.

Example
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
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;

		}
Requirements

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

See Also