Version

WorkingHourAppearance Property (UltraTimelineView)

Gets/sets the general appearance for the TimeSlotUIElements which appear in the working hour range.
Syntax
'Declaration
 
Public Property WorkingHourAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase WorkingHourAppearance {get; set;}
Remarks

Under the Office2007 ViewStyle, Each owner's appearance is automatically resolved using a color scheme that can be reserved exclusively for that owner. The WorkingHourAppearance overrides these automatic settings as they are applied to the TimeSlotUIElements which fall within the working hour range.

Working hours can be defined differently for each Owner, in continguous or discontiguous blocks, on various different levels; this concept is explored in detail in the documentation for the OwnerTimeSlotSettings class.

Example
The following code sample demonstrates how to use UltraTimelineView's Appearance properties to customize the look of the control:

Imports System.Collections.Generic
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.Diagnostics

    Public Sub InitAppearances(ByVal control As UltraTimelineView)

        '  Use a navy blue foreground color for all elements
        control.Appearance.ForeColor = Color.Navy

        '  Set the working hour, non-working hour, and selected range
        '  appearances to customized colors
        control.WorkingHourAppearance.BackColor = Color.White
        control.WorkingHourAppearance.BorderColor = Color.DarkGray
        control.NonWorkingHourAppearance.BackColor = Color.LightGray
        control.NonWorkingHourAppearance.BorderColor = Color.Gray
        control.SelectedDateTimeRangeAppearance.BackColor = Color.GhostWhite
        control.SelectedDateTimeRangeAppearance.BackColor2 = Color.LightBlue
        control.SelectedDateTimeRangeAppearance.BackGradientStyle = GradientStyle.Vertical
        control.SelectedDateTimeRangeAppearance.BorderColor = Color.Navy
    End Sub
using System.Collections.Generic;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

    public void InitAppearances( UltraTimelineView control )
    {
        //  Use a navy blue foreground color for all elements
        control.Appearance.ForeColor = Color.Navy;

        //  Set the working hour, non-working hour, and selected range
        //  appearances to customized colors
        control.WorkingHourAppearance.BackColor = Color.White;
        control.WorkingHourAppearance.BorderColor = Color.DarkGray;
        control.NonWorkingHourAppearance.BackColor = Color.LightGray;
        control.NonWorkingHourAppearance.BorderColor = Color.Gray;
        control.SelectedDateTimeRangeAppearance.BackColor = Color.GhostWhite;
        control.SelectedDateTimeRangeAppearance.BackColor2 = Color.LightBlue;
        control.SelectedDateTimeRangeAppearance.BackGradientStyle = GradientStyle.Vertical;
        control.SelectedDateTimeRangeAppearance.BorderColor = Color.Navy;
    }
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