Intersoft.Client.UI.Aqua.UXInput Namespace > UXCalendar Class : WeekNumberRule Property |
<CategoryAttribute("Common Properties")> Public Property WeekNumberRule As CalendarWeekRule
Dim instance As UXCalendar Dim value As CalendarWeekRule instance.WeekNumberRule = value value = instance.WeekNumberRule
[CategoryAttribute("Common Properties")] public CalendarWeekRule WeekNumberRule {get; set;}
[CategoryAttribute("Common Properties")] public: property CalendarWeekRule WeekNumberRule { CalendarWeekRule get(); void set ( CalendarWeekRule value); }
The calculation of week number is determined with FirstDayOfWeek and WeekNumberRule property. The combination of these two properties will affect the week number value of each week in UXCalendar.
The following example shows how to customize the week number behavior.
XAML |
Copy Code
|
---|---|
<Intersoft:UXCalendar x:Name="UXCalendar1" DisplayDate="12/1/2010" WeekNumberRule="FirstFullWeek" FirstDayOfWeek="Monday"/> |
Target Platforms: 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