Represents the appointments area in SchedulerTimelineViewElement.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class TimelineAppointmentsPresenter : SchedulerCellContainer, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerCellContainerTimelineAppointmentsPresenter...
Implements:
Inherited Members
Constructors
Creates a new instance of the TimelineAppointmentsPresenter class.
public TimelineAppointmentsPresenter(RadScheduler scheduler, SchedulerView view, SchedulerTimelineViewElement timelineViewElement)
The RadScheduler this presenter belongs to.
viewSchedulerViewThe SchedulerView this presenter belongs to.
timelineViewElementSchedulerTimelineViewElementThe SchedulerTimelineViewElement this presenter belongs to.
Fields
public static RadProperty AppointmentHeightProperty
Properties
Gets or sets the appointment's height.
public int AppointmentHeight { get; set; }
If there is an active drag operation and the visual feedback is currently inside the presenter, returns the visual feedback element. Otherwise returns null.
public DragFeedbackElement Feedback { get; }
Gets or sets the vertical scroll offset of the presenter.
public int ScrollOffset { get; set; }
Gets the SchedulerTimelineViewElement that owns this presenter.
public SchedulerTimelineViewElement TimelineViewElement { get; }
Methods
Arranges the appointments in the presenter.
protected virtual void ArrangeAppointments(SizeF finalSize)
The size passed to the ArrangeOverride method.
Arranges the cell elements in the presenter.
protected virtual void ArrangeCells(SizeF finalSize)
The size passed to the ArrangeOverride method.
Arranges the drag feedback element.
protected virtual void ArrangeFeedback()
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Creates AppointmentElement elements which will be used in this container.
protected override IEnumerable<AppointmentElement> CreateAppointmentElements()
IEnumerable<AppointmentElement>
A collection of the newly created appointment elements.
Overrides:
Creates SchedulerCellElement elements which will be used in this container.
protected override IEnumerable<SchedulerCellElement> CreateCellElements()
IEnumerable<SchedulerCellElement>
A collection of the newly created cells.
Overrides:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Initially the appointments are all aranged in a single row and this method is called to resolve any overlapping appointment.
protected virtual void ResolveOverlappingAppointments(SizeF availableSize)
Scrolls the presenter with a single row up or down.
public void Scroll(bool up)
If [true] the presenter is scrolled up, otherwise it is scrolled down.
Overrideable method called by UpdateCells().
protected override void UpdateCellsCore()
Overrides: