SchedulerCellElement
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
public SchedulerCellElement(RadScheduler scheduler, SchedulerView view)
Fields
public static readonly string DefaultClassName
public static RadProperty IsTodayProperty
public static readonly RadProperty IsWholeHourProperty
public static readonly RadProperty IsWorkTimeCellProperty
public static readonly RadProperty SelectedProperty
Properties
public bool AllowSelection { get; set; }
Gets or sets the date which that cell is representing.
public virtual DateTime Date { get; }
public bool IsAllDayCell { get; }
[Browsable(false)]
public bool IsWholeHour { get; }
[VsbBrowsable(false)]
public virtual bool IsWorkTime { get; set; }
Methods
protected virtual void AttachView(SchedulerView view, object context)
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Raises the Click event.
Raises the DoubleClick event.
Raises the KeyDown event.
protected override void OnKeyDown(KeyEventArgs e)
The key event arguments.
Overrides:
Raises the KeyPress event.
protected override void OnKeyPress(KeyPressEventArgs e)
The key press event arguments.
Overrides:
Raises the KeyUp event.
protected override void OnKeyUp(KeyEventArgs e)
The key event arguments.
Overrides:
Called when a mouse button is pressed down over the item.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event arguments.
Overrides:
Called when the mouse moves over the item, handling highlight and border highlight effects.
protected override void OnMouseMove(MouseEventArgs e)
The mouse event arguments.
Overrides:
Called when a mouse button is released over the item.
protected override void OnMouseUp(MouseEventArgs e)
The mouse event arguments.
Overrides:
Performs the main painting operation for the element, rendering fill, content, and border in the correct order.
Determines whether the element may be treated as a drop target during drag-and-drop operation.
protected override bool ProcessDragOver(Point mousePosition, ISupportDrag dragObject)
The current mouse position.
dragObjectISupportDragThe object being dragged.
Returns:True if the element can accept the drop; otherwise, false.
Overrides: