A base class for all visual elements in RadScheduler that can contain cells or appointments (for example DayViewAppointmentsTable, MonthViewAreaElement, TimelineAppointmentsPresenter, etc.)
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public abstract class SchedulerCellContainer : SchedulerVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerCellContainer...
Derived Classes:
Implements:
Inherited Members
Constructors
public SchedulerCellContainer(RadScheduler scheduler, SchedulerView view)
Properties
Gets the AppointmentElement elements that belong to this container.
public List<AppointmentElement> AppointmentElements { get; }
Gets the SchedulerCellElement elements that belong to this container.
public List<SchedulerCellElement> CellElements { get; }
Methods
Creates AppointmentElement elements which will be used in this container.
protected abstract IEnumerable<AppointmentElement> CreateAppointmentElements()
IEnumerable<AppointmentElement>
A collection of the newly created appointment elements.
Creates SchedulerCellElement elements which will be used in this container.
protected abstract IEnumerable<SchedulerCellElement> CreateCellElements()
IEnumerable<SchedulerCellElement>
A collection of the newly created cells.
Gets the visual AppointmentElement associated with a specified appointment from this container.
public AppointmentElement GetAppointmentElement(IEvent appointment)
The specified appointment.
Returns:The visual element or null if no such element is found.
Gets the cell which represents a specified date.
public SchedulerCellElement GetCellByDate(DateTime date)
The specified date.
Returns:The corresponding cell.
Recycles the existing appointment elements in this container and replaces them with new ones.
public virtual void InitializeAppointments()
Recycles the existing cell elements in this container and replaces them with new ones.
public virtual void InitializeCells()
Recycles the existing cell and appointment elements in this container and replaces them with new ones.
public void InitializeChildren()
Called when an appointment element is being arranged. Override to correct the arrange position of the appointment.
protected virtual RectangleF OnAppointmentLayout(AppointmentElement appointment, RectangleF proposedRect, SizeF finalSize)
The appointment element that is being arranged.
proposedRectRectangleFThe calculated arrange rectangle.
finalSizeSizeFThe arrange size of the parent container.
Returns:The corrected arrange bounds.
Fires the AppointmentsRefreshed event.
protected virtual void OnAppointmentsRefreshed()
Fires the AppointmentsRefreshing event.
protected virtual void OnAppointmentsRefreshing(CancelEventArgs args)
The event arguments for the event.
A callback used by the owning RadControl to notify the element for the beginning of a disposing process.
protected override void OnBeginDispose()
Overrides:
Called when a cell element is being arranged. Override to correct the arrange position of the cell.
protected virtual RectangleF OnCellLayout(SchedulerCellElement cell, RectangleF proposedRect, SizeF finalSize)
The cell element that is being arranged.
proposedRectRectangleFThe calculated arrange rectangle.
finalSizeSizeFThe arrange size of the parent container.
Returns:The corrected arrange bounds.
Fires the CellsRefreshed event.
protected virtual void OnCellsRefreshed()
Fires the CellsRefreshing event.
protected virtual void OnCellsRefreshing(CancelEventArgs args)
The event arguments for the event.
Removes the existing appointment elements from the Children collection of the current container and tries to cache them for reusing in the future. If the caching is not successfull, the appointment element is disposed.
protected virtual void RecycleAppointments()
Removes the existing cell elements from the Children collection of the current container and tries to cache them for reusing in the future. If the caching is not successfull, the cell is disposed.
protected virtual void RecycleCells()
Synchronizes all appointment elements in this container with their associated IEvent.
public virtual void UpdateAppointments()
Updates the existing cell elements according to the current settings of the associated view.
public void UpdateCells()
Overrideable method called by UpdateCells().
protected abstract void UpdateCellsCore()
Events
Fired after the appointment elements in this container have been refreshed.
public event EventHandler AppointmentsRefreshed
Fired when the appointment elements in this container are about to be refreshed. Cancelable.
public event CancelEventHandler AppointmentsRefreshing
Fired when the cell element in this container have been refreshed.
public event EventHandler CellsRefreshed
Fired when the cell elements in this container are about to be refreshed. Cancelable.
public event CancelEventHandler CellsRefreshing