CalendarCellElement
Visual cell for a date or a calendar table header; its state properties drive the calendar cell theme states.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CalendarCellElement : CalendarVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementCalendarVisualElementCalendarCellElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a cell with an optional visual owner and the supplied calendar, view, and text. When an owner is supplied, the cell inherits that owner's calendar and view context.
public CalendarCellElement(CalendarVisualElement owner, RadCalendar calendar, CalendarView view, string text)
The parent visual element, or null to use the supplied calendar and view directly.
calendarRadCalendarThe calendar associated with the cell when owner is null.
The calendar view associated with the cell when owner is null.
The initial cell text.
Initializes a cell owned by the specified visual element and assigns its displayed text.
public CalendarCellElement(CalendarVisualElement owner, string text)
The visual element whose calendar and view context the cell inherits.
textstringThe initial cell text.
Initializes a cell owned by the specified calendar visual element with empty text.
public CalendarCellElement(CalendarVisualElement owner)
The visual element whose calendar and view context the cell inherits.
Initializes a cell for the specified calendar view and assigns its displayed text.
public CalendarCellElement(RadCalendar calendar, CalendarView view, string text)
The calendar that owns the view.
viewCalendarViewThe view whose table contains the cell.
textstringThe initial cell text.
Initializes a cell for the specified calendar view with empty text.
public CalendarCellElement(RadCalendar calendar, CalendarView view)
The calendar that owns the view.
viewCalendarViewThe view whose table contains the cell.
Fields
Identifies whether this cell may be enlarged by the calendar's fish-eye effect.
public static RadProperty AllowFishEyeProperty
Identifies the routed event used to forward cell-click notifications to the owning calendar table.
public static RoutedEvent CellClickedEvent
Identifies whether the cell represents the focused date or, in the year-range view, its containing decade.
public static RadProperty FocusedProperty
Identifies cells used for row, column, or selector headers rather than dates.
public static RadProperty IsHeaderCellProperty
Identifies the state set while a cell participates in a calendar zoom transition.
public static RadProperty IsZoomingProperty
Identifies whether the cell represents a date outside the current view's main range.
public static RadProperty OtherMonthProperty
Identifies whether the cell's date is outside the calendar's selectable date range.
public static RadProperty OutOfRangeProperty
Identifies whether the cell is selected in the calendar.
public static RadProperty SelectedProperty
Identifies whether the cell represents a configured special day.
public static RadProperty SpecialDayProperty
Identifies whether the cell represents today's date.
public static RadProperty TodayProperty
Identifies whether the represented date is treated as a weekend for calendar-cell styling.
public static RadProperty WeekEndProperty
Identifies the scale applied to the cell bounds and font during fish-eye animation.
public static RadProperty ZoomFactorProperty
Properties
Indicates the fish eye feature factor of a cell.
public virtual bool AllowFishEye { get; set; }
Gets the zero-based column of this cell in its calendar table.
public int Column { get; }
Gets or sets the date which that cell is representing.
public virtual DateTime Date { get; set; }
Gets or sets the cell's default size, used when the calendar table does not stretch cells to fill its layout.
public override Size DefaultSize { get; set; }
Overrides:
Gets or sets the cell which is from other month.
public virtual bool OtherMonth { get; set; }
Gets or sets the out of range cell.
public virtual bool OutOfRange { get; set; }
Gets or sets a cell representing a special day.
public virtual bool SpecialDay { get; set; }
Gets or sets the zooming factor of a cell.
public virtual float ZoomFactor { get; set; }
Methods
Invalidates the calendar when a selected cell is arranged while the fish-eye effect is enabled.
Called when the DPI scale factor changes. Updates the scale factor and notifies child elements.
public override void DpiScaleChanged(SizeF scaleFactor)
The new DPI scale factor.
Overrides:
Sets the default cell size and input behavior, and subscribes to font changes used by fish-eye animation.
protected override void InitializeFields()
Overrides:
Leaves cell sizing to the calendar table, which positions cells from its row and column layout.
Updates the cached font when it changes through inheritance and refreshes the tooltip when special-day state changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property-change details.
Overrides: