Version

ResizeMode Property

Determines how the control resizes and displays the months.
Syntax
'Declaration
 
Public Property ResizeMode As ResizeMode
public ResizeMode ResizeMode {get; set;}
Remarks

The ResizeMode property determines whether the control sizes itself based on the UltraMonthViewMultiBase.MonthDimensions or displays as many months as possible based on the current size of the control. When set to SizeToCalendar, the control will adjust its size to display the months indicated by the UltraMonthViewMultiBase.MonthDimensions. When set to BaseOnControlSize, the control will display as many months as possible based on the current size of the control. The CalendarAlign property will determine how the months are positioned in the control.

Example
This example configures the control to display as many months as possible given the current size of the control, and top-left aligns the visible months.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.MonthViewMulti

    Private Sub OptimizeDisplay()

        '	Set the ResizeMode property to BaseOnControlSize, so the control
        '	displays as many months as can be fit into the available space.
        Me.ultraMonthViewMulti1.ResizeMode = ResizeMode.BaseOnControlSize

        '	Align the calendar(s) with the top-left edge of the control
        Me.ultraMonthViewMulti1.CalendarAlign = ContentAlignment.TopLeft

    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using Infragistics.Win.UltraWinSchedule.MonthViewMulti;

		private void OptimizeDisplay()
		{

			//	Set the ResizeMode property to BaseOnControlSize, so the control
			//	displays as many months as can be fit into the available space.
			this.ultraMonthViewMulti1.ResizeMode = ResizeMode.BaseOnControlSize;

			//	Align the calendar(s) with the top-left edge of the control
			this.ultraMonthViewMulti1.CalendarAlign = ContentAlignment.TopLeft;

		}
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