'宣言 Public Property NonWorkingHourAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase NonWorkingHourAppearance {get; set;}
Office 2007 の ViewStyle の場合、各オーナーの外観は、そのオーナーだけが保持できるカラー スキーマ を使用して自動的に解決されます。NonWorkingHourAppearance は、稼働時間外の TimeSlotUIElements に適用されるため、自動設定をオーバーライドします。
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; }