Version

FirstDayOfWeekResolved Property

Returns the day of the week considered the start of the week.
Syntax
'Declaration
 
Public ReadOnly Property FirstDayOfWeekResolved As DayOfWeekEnum
public DayOfWeekEnum FirstDayOfWeekResolved {get;}
Remarks

By default, the FirstDayOfWeek property is set to Default. When left set to this, the DayOfWeekEnum considered the first day of the week is based on the system settings of the system using the component.

The WeekRule and FirstDayOfWeekResolved are used to calculate the date which starts the first week of the year. As such, a Week object is not fixed to a particular range of dates but is instead associated with a range of dates based on the calculated first week of the year. For more information on how the date of the first week of the year is calculated, refer to the GetFirstWeekOfYearDate method.

Example
This example uses the FirstDayOfWeekResolved property to determine whether Sunday is the default value and if it is, it uses the FirstDayOfWeek property to change it to Monday.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.IO
Imports System.Globalization

    Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click

        '	Set the property to Default
        Me.ultraCalendarInfo1.FirstDayOfWeek = Infragistics.Win.UltraWinSchedule.FirstDayOfWeek.Default

        '	Use the FirstDayOfWeekResolved property to determine the actual first
        '	day of the week
        Dim firstDayOfWeek As DayOfWeekEnum = Me.ultraCalendarInfo1.FirstDayOfWeekResolved

        '	If the resolved value for the first day of the week is Sunday, change it to Monday
        If (firstDayOfWeek = DayOfWeekEnum.Sunday) Then
            Me.ultraCalendarInfo1.FirstDayOfWeek = Infragistics.Win.UltraWinSchedule.FirstDayOfWeek.Monday
        End If

    End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.IO;
using System.Globalization;

		private void button1_Click(object sender, System.EventArgs e)
		{

			//	Set the property to Default
			this.ultraCalendarInfo1.FirstDayOfWeek = FirstDayOfWeek.Default;

			//	Use the FirstDayOfWeekResolved property to determine the actual first
			//	day of the week
			DayOfWeekEnum firstDayOfWeek = this.ultraCalendarInfo1.FirstDayOfWeekResolved;

			//	If the resolved value for the first day of the week is Sunday, change it to Monday
			if ( firstDayOfWeek == DayOfWeekEnum.Sunday )
				this.ultraCalendarInfo1.FirstDayOfWeek = FirstDayOfWeek.Monday;
		
		}
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