The pre-week area is the area immediately to the left of the Infragistics.Win.UltraWinSchedule.MonthViewMulti.WeekUIElement where week numbers will be displayed if the WeekNumbersVisible is set to true.
The pre-week area will not be displayed if AllowWeekSelection and WeekNumbersVisible are both false.
Private Sub SetupWeekNumberDisplay() ' Get the number of months currently being displayed by the control Dim visibleMonths As Integer = Me.ultraMonthViewMulti1.VisibleMonths.Count ' If the number of visible months is > 1, display week numbers If (visibleMonths > 1) Then Me.ultraMonthViewMulti1.WeekNumbersVisible = True Else Me.ultraMonthViewMulti1.WeekNumbersVisible = False End If End Sub
private void SetupWeekNumberDisplay() { // Get the number of months currently being displayed by the control int visibleMonths = this.ultraMonthViewMulti1.VisibleMonths.Count; // If the number of visible months is > 1, display week numbers if ( visibleMonths > 1 ) this.ultraMonthViewMulti1.WeekNumbersVisible = true; else this.ultraMonthViewMulti1.WeekNumbersVisible = 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