Version

SelectedDateTimeRangeAppearance Property

Gets/sets the general appearance for the TimeSlotUIElements which fall within the SelectedDateTimeRange.
Syntax
'Declaration
 
Public Property SelectedDateTimeRangeAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase SelectedDateTimeRangeAppearance {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 SelectedDateTimeRangeAppearance overrides these automatic settings as they are applied to the TimeSlotUIElements which are currently selected.

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