Version

UseAlternateMonthAppearances Property

Determines whether the alternate month appearances are used.
Syntax
'Declaration
 
Public Property UseAlternateMonthAppearances As Boolean
public bool UseAlternateMonthAppearances {get; set;}
Remarks

By default, the alternate month appearances (AlternateMonthAppearance, AlternateMonthHeaderAppearance, and AlternateMonthDayAppearance) are not used when rendering the month elements to be consistent with Outlook's appearance. However, when this property is set to true, the control will use those appearances when resolving the appearance for the related objects.

Note: Because the control sizes itself according to the font size of its Appearance, certain aspects of the alternate month appearances are not applied to their associated elements.

Specifically, only the following properties are applied:

  • AlphaLevel
  • BackColor
  • BackColor2
  • BackColorAlpha
  • BackColorDisabled
  • BackColorDisabled2
  • BackGradientStyle
  • BorderAlpha
  • BorderColor
  • BorderColor3DBase
  • Cursor
  • ForeColor
  • ForeColorDisabled
  • ForegroundAlpha

Example
This example configures the control to display a light blue background and dark blue foreground to "alternate" months. If the current month is an even-numbered month, an alternate month is defined as an odd-numbered month, and vice-versa.

Private Sub SetupAlternateMonthAppearance()

    '	Set some color properties of the UltraCalendarLook object's AlternateMonthAppearance
    Me.ultraMonthViewMulti1.CalendarLook.AlternateMonthAppearance.BackColor = Color.LightBlue
    Me.ultraMonthViewMulti1.CalendarLook.AlternateMonthDayAppearance.ForeColor = Color.DarkBlue

    '	Set the control's UseAlternateMonthAppearances property so that
    '	the AlternateMonthAppearance properties are applied to the control
    Me.ultraMonthViewMulti1.UseAlternateMonthAppearances = True

End Sub
private void SetupAlternateMonthAppearance()
{

	//	Set some color properties of the UltraCalendarLook object's AlternateMonthAppearance
	this.ultraMonthViewMulti1.CalendarLook.AlternateMonthAppearance.BackColor = Color.LightBlue;
	this.ultraMonthViewMulti1.CalendarLook.AlternateMonthDayAppearance.ForeColor = Color.DarkBlue;

	//	Set the control's UseAlternateMonthAppearances property so that
	//	the AlternateMonthAppearance properties are applied to the control
	this.ultraMonthViewMulti1.UseAlternateMonthAppearances = 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