'Declaration Public Property FirstDayOfWeek As FirstDayOfWeek
public FirstDayOfWeek FirstDayOfWeek {get; set;}
The default value for this property is Default which means that the FirstDayOfWeek used is based on the current system settings.
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; }
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