Version

WeekNumbersVisible Property (UltraMonthViewSingle)

Determines whether the Week numbers are displayed.
Syntax
'Declaration
 
Public Property WeekNumbersVisible As Boolean
public bool WeekNumbersVisible {get; set;}
Remarks

By default, the control's Week numbers are not displayed. Setting the WeekNumbersVisible property to True will result in a header being displayed for each week the control is currently displaying. Within each of these week headers is the number of that week in the year to which it belongs.

Note: The week headers that appear when the WeekNumbersVisible property is set to True are selectable. As such, when they are clicked, the Day.Selected property for each day in that Week is set accordingly. Note, however, that the Week object itself does not expose a Selected property.

Example
Demonstrates how to set the control's various border styles to make some elements of the control appear raised, inset, etc., or prevent the borders from appearing at all.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.MonthViewSingle

    Private Sub SetupBorderStyles()

        '	Set the control's BorderStyle to Raised
        Me.UltraMonthViewSingle1.BorderStyle = UIElementBorderStyle.Raised

        '	Set the control's BorderStyleDay to Inset
        Me.UltraMonthViewSingle1.BorderStyleDay = UIElementBorderStyle.Inset

        '	Set the control's BorderStyleDayOfWeekHeader to None
        Me.UltraMonthViewSingle1.BorderStyleDayOfWeekHeader = UIElementBorderStyle.None

        '	Set the control's BorderStyleWeekNumber to None...since the week numbers are
        '	hidden by default, set the WeekNumbersVisible property to true so we see them.
        Me.UltraMonthViewSingle1.BorderStyleWeekNumber = UIElementBorderStyle.None
        Me.UltraMonthViewSingle1.WeekNumbersVisible = True

    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using Infragistics.Win.UltraWinSchedule.MonthViewSingle;
using System.Diagnostics;

		private void SetupBorderStyles()
		{

			//	Set the control's BorderStyle to Raised
			this.ultraMonthViewSingle1.BorderStyle = UIElementBorderStyle.Raised;

			//	Set the control's BorderStyleDay to Inset
			this.ultraMonthViewSingle1.BorderStyleDay = UIElementBorderStyle.Inset;

			//	Set the control's BorderStyleDayOfWeekHeader to None
			this.ultraMonthViewSingle1.BorderStyleDayOfWeekHeader = UIElementBorderStyle.None;

			//	Set the control's BorderStyleWeekNumber to None...since the week numbers are
			//	hidden by default, set the WeekNumbersVisible property to true so we see them.
			this.ultraMonthViewSingle1.BorderStyleWeekNumber = UIElementBorderStyle.None;
			this.ultraMonthViewSingle1.WeekNumbersVisible = true;

		}
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