コード例 #1
0
        internal void SetDefaultStyleValues()
        {
            ResourceDictionary dictionary = RadCalendar.MultiDayViewResources;

            this.defaultTimeRulerItemStyleSelector = this.defaultTimeRulerItemStyleSelector ?? (CalendarTimeRulerItemStyleSelector)dictionary["CalendarTimeRulerItemStyleSelector"];
            this.defaultCurrentTimeIndicatorStyle  = this.defaultCurrentTimeIndicatorStyle ?? (Style)dictionary["CurrentTimeIndicatorStyle"];
            this.defaultAllDayAreaBorderStyle      = this.defaultAllDayAreaBorderStyle ?? (Style)dictionary["AllDayAreaBorderStyle"];
            this.defaultAllDayAreaTextStyle        = this.defaultAllDayAreaTextStyle ?? (Style)dictionary["DefaultAllDayTextBlockStyle"];
            this.defaulTodaySlotStyle = this.defaulTodaySlotStyle ?? (Style)dictionary["TodaySlotStyle"];
        }
コード例 #2
0
        internal void SetDefaultStyleValues()
        {
            ResourceDictionary dictionary = RadCalendar.MultiDayViewResources;

            this.defaultTimeRulerItemStyleSelector = this.defaultTimeRulerItemStyleSelector ?? (CalendarTimeRulerItemStyleSelector)dictionary["CalendarTimeRulerItemStyleSelector"];
            this.defaultCurrentTimeIndicatorStyle  = this.defaultCurrentTimeIndicatorStyle ?? (Style)dictionary["CurrentTimeIndicatorStyle"];
            this.defaultAllDayAreaBorderStyle      = this.defaultAllDayAreaBorderStyle ?? (Style)dictionary["AllDayAreaBorderStyle"];
            this.defaultAllDayAreaTextStyle        = this.defaultAllDayAreaTextStyle ?? (Style)dictionary["DefaultAllDayTextBlockStyle"];
            this.defaulTodaySlotStyle              = this.defaulTodaySlotStyle ?? (Style)dictionary["TodaySlotStyle"];
            this.defaultSpecialSlotStyleSelector   = this.defaultSpecialSlotStyleSelector ?? (SpecialSlotStyleSelector)dictionary["SpecialSlotStyleSelector"];
            MultiDayViewSettings.DefaultBackground = (SolidColorBrush)dictionary["TelerikCalendarBackgroundBrush"];
        }