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
Identifies the AppointmentHeight property.
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 timeline cells, appointments, and any active drag feedback.
Creates appointment elements from the view's events, converting their times to the scheduler's system time zone.
protected override IEnumerable<AppointmentElement> CreateAppointmentElements()
IEnumerable<AppointmentElement>
The appointment elements displayed in the timeline.
Overrides:
Creates one scheduler cell for each rendered timeline interval.
protected override IEnumerable<SchedulerCellElement> CreateCellElements()
IEnumerable<SchedulerCellElement>
The cells for the current visible timeline range.
Overrides:
Calculates appointment bounds from the visible timeline cells, applying exact-time placement and overlap layout.
Invalidates measurement and refreshes layout when the appointment height changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property change details.
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.
Updates each timeline cell's date, duration, selection state, and today marker.
protected override void UpdateCellsCore()
Overrides: