SchedulerCellElement
Represents a recyclable scheduler-view cell and forwards cell input and custom painting to its owning scheduler.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerCellElement : SchedulerVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ISchedulerRecyclableElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerCellElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a cell associated with the specified scheduler and view.
public SchedulerCellElement(RadScheduler scheduler, SchedulerView view)
The scheduler that handles this cell's interactions.
viewSchedulerViewThe view that supplies the cell's date, duration, and position.
Fields
Gets the default theme class name used when requesting a scheduler cell from the element provider.
public static readonly string DefaultClassName
Identifies the IsToday property that marks a cell representing the current day.
public static RadProperty IsTodayProperty
Identifies the IsWholeHour property used by the cell's whole-hour visual state.
public static readonly RadProperty IsWholeHourProperty
Identifies the IsWorkTime property used by the cell's work-time visual state.
public static readonly RadProperty IsWorkTimeCellProperty
Identifies the Selected property that drives the cell's selected visual state.
public static readonly RadProperty SelectedProperty
Properties
Gets or sets whether selection and date-based cell lookup can use this cell.
public bool AllowSelection { get; set; }
Gets the column index assigned to this cell by its view container.
public int Column { get; }
Gets or sets the date which that cell is representing.
public virtual DateTime Date { get; }
Gets the time interval represented by the cell; it is zero until a view assigns a duration.
public TimeSpan Duration { get; }
Gets whether this cell belongs to an all-day area, is a month-view cell, or represents a timeline interval of at least one day.
public bool IsAllDayCell { get; }
Gets or sets the whole-hour state used by the cell's visual-state manager.
[Browsable(false)]
public bool IsWholeHour { get; }
Gets or sets whether this cell represents work time, which can select a distinct visual state.
[VsbBrowsable(false)]
public virtual bool IsWorkTime { get; set; }
Methods
Resets recycled cell state and associates the cell with a new view.
protected virtual void AttachView(SchedulerView view, object context)
The view that will own this cell.
contextobjectThe view-specific context supplied by the element provider.
Finds the nearest ancestor that hosts scheduler cells.
public SchedulerCellContainer FindParentContainer()
The containing cell container, or null if this cell is not attached to one.
Sets the theme class and enables the fill, border, focus, and drag-drop behavior used by scheduler cells.
protected override void InitializeFields()
Overrides:
Returns an empty desired size because the view container assigns cell bounds during arrangement.
Raises the scheduler's cell-click handling with event arguments for this cell.
Forwards a double-click on this cell to the owning scheduler.
protected override void OnDoubleClick(EventArgs e)
The event data.
Overrides:
Processes the base key-down behavior and forwards the input to the owning scheduler.
protected override void OnKeyDown(KeyEventArgs e)
The keyboard event data.
Overrides:
Processes the base key-press behavior and forwards the input to the owning scheduler.
protected override void OnKeyPress(KeyPressEventArgs e)
The keyboard event data.
Overrides:
Processes the base key-up behavior and forwards the input to the owning scheduler.
protected override void OnKeyUp(KeyEventArgs e)
The keyboard event data.
Overrides:
Processes the base mouse-down behavior and forwards the input to the owning scheduler.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event data.
Overrides:
Processes the base mouse-move behavior and forwards the input to the owning scheduler.
protected override void OnMouseMove(MouseEventArgs e)
The mouse event data.
Overrides:
Processes the base mouse-up behavior and forwards the input to the owning scheduler.
protected override void OnMouseUp(MouseEventArgs e)
The mouse event data.
Overrides:
Paints the cell and raises the scheduler's custom cell-paint callback when custom drawing is enabled.
Accepts drag-over feedback only when the dragged element is a scheduler drag-feedback element.
protected override bool ProcessDragOver(Point mousePosition, ISupportDrag dragObject)
The pointer position relative to the drag target.
dragObjectISupportDragThe object being dragged.
Returns:true only for a DragFeedbackElement.
Overrides: