Version

UltraCalendarLook Class

Manages the Appearance information for UltraSchedule controls.
Syntax
'Declaration
 
Public Class UltraCalendarLook 
   Inherits System.ComponentModel.Component
public class UltraCalendarLook : System.ComponentModel.Component 
Remarks

The UltraCalendarLook component centralizes the Infragistics.Win.Appearance information for the UltraSchedule controls into a single component that can be referenced by all the UltraSchedule controls (UltraScheduleControlBase.CalendarLook). This allows the controls to share the same appearance information and provide a uniform appearance across all the controls without the need to modify properties on each control.

The component exposes collections for applying general appearance information to dates (e.g. MonthsOfYearLook, DaysOfWeekLook, etc.). You can also apply appearance information to a specific date.

For example, to change the backcolor of all days in December of every year, you would use the following syntax:

[C#]

this.ultraCalendarLook1.MonthsOfYearLook[12].DayAppearance.BackColor = Color.Red;

[VB]

Me.UltraCalendarLook1.MonthsOfYearLook(12).DayAppearance.BackColor = Color.Red

The more specific object's settings take precendence so if you then wanted to change the backcolor of all days in December of 2001, you would use the following syntax:

[C#]

this.ultraCalendarLook1.GetMonthLook(12, 2001).DayAppearance.BackColor = Color.Blue;

[VB]

Me.UltraCalendarLook1.GetMonthLook(12, 2001).DayAppearance.BackColor = Color.Blue

The component also contains Appearance properties to control the selected appearance of objects (e.g. SelectedDayAppearance, SelectedAppointmentAppearance, etc.).

If the UltraScheduleControlBase.CalendarLook property of an UltraSchedule control is not explicitly set to an instance of an UltraCalendarLook, one will be created at runtime. At that point, no other UltraSchedule control would be listening to that instance of the UltraCalendarLook and therefore, changes made through the UltraScheduleControlBase.CalendarLook property would affect only that control. To gain the benefit of sharing the Appearance information amongst the controls, place an instance of the UltraCalendarLook on your form and set the UltraScheduleControlBase.CalendarLook property to that component.

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