예제 #1
0
        /// <summary>
        /// Evaluates the state (behavior) to be applied on the respective calendar cell.
        /// </summary>
        /// <param name="container">The <see cref="RadCalendar"/> instance that contains the respective cell.</param>
        /// <param name="context">The <see cref="CalendarCellStateContext"/> associated with the respective cell.</param>
        public void SelectState(CalendarCellStateContext context, RadCalendar container)
        {
            if (container == null)
            {
                return;
            }

            this.SelectStateCore(context, container);
        }
예제 #2
0
        internal CalendarCellStyleContext(CalendarCellStateContext context)
        {
            this.Date = context.Date;

            this.IsPointerOver     = context.IsPointerOver;
            this.IsCurrent         = context.IsCurrent;
            this.IsBlackout        = context.IsBlackout;
            this.IsSelected        = context.IsSelected;
            this.IsHighlighted     = context.IsHighlighted;
            this.IsFromAnotherView = context.IsFromAnotherView;

            this.ApplyCellTemplateDecorations = true;
        }
예제 #3
0
 /// <summary>
 /// When implemented by a derived class, provides a way to tap into the default calendar cell state (behavior) logic through the passed
 /// <see cref="CalendarCellStateContext"/> argument instance. For example you can mark the respective calendar cell as not available for selection by
 /// setting the <see cref="CalendarCellStateContext.IsBlackout"/> property, or you can highlight a calendar cell by setting the
 /// <see cref="CalendarCellStateContext.IsHighlighted"/> property.
 /// </summary>
 protected virtual void SelectStateCore(CalendarCellStateContext context, RadCalendar container)
 {
 }