ClassTimelineAppointmentsPresenter
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
TimelineAppointmentsPresenter(RadScheduler, SchedulerView, SchedulerTimelineViewElement)
Creates a new instance of the TimelineAppointmentsPresenter class.
Declaration
public TimelineAppointmentsPresenter(RadScheduler scheduler, SchedulerView view, SchedulerTimelineViewElement timelineViewElement)
Parameters
scheduler
The RadScheduler this presenter belongs to.
view
The SchedulerView this presenter belongs to.
timelineViewElement
The SchedulerTimelineViewElement this presenter belongs to.
Fields
AppointmentHeightProperty
Declaration
public static RadProperty AppointmentHeightProperty
Field Value
Properties
AppointmentHeight
Gets or sets the appointment's height.
Feedback
If there is an active drag operation and the visual feedback is currently inside the presenter, returns the visual feedback element. Otherwise returns null.
Declaration
public DragFeedbackElement Feedback { get; }
Property Value
ScrollOffset
Gets or sets the vertical scroll offset of the presenter.
TimelineViewElement
Gets the SchedulerTimelineViewElement that owns this presenter.
Declaration
public SchedulerTimelineViewElement TimelineViewElement { get; }
Property Value
Methods
ArrangeAppointments(SizeF)
Arranges the appointments in the presenter.
Declaration
protected virtual void ArrangeAppointments(SizeF finalSize)
Parameters
finalSize
The size passed to the ArrangeOverride method.
ArrangeCells(SizeF)
Arranges the cell elements in the presenter.
Declaration
protected virtual void ArrangeCells(SizeF finalSize)
Parameters
finalSize
The size passed to the ArrangeOverride method.
ArrangeFeedback()
Arranges the drag feedback element.
Declaration
protected virtual void ArrangeFeedback()
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CreateAppointmentElements()
Creates AppointmentElement elements which will be used in this container.
Declaration
protected override IEnumerable<AppointmentElement> CreateAppointmentElements()
Returns
IEnumerable<AppointmentElement>
A collection of the newly created appointment elements.
Overrides
CreateCellElements()
Creates SchedulerCellElement elements which will be used in this container.
Declaration
protected override IEnumerable<SchedulerCellElement> CreateCellElements()
Returns
IEnumerable<SchedulerCellElement>
A collection of the newly created cells.
Overrides
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
Event arguments containing information about the property that changed.
Overrides
ResolveOverlappingAppointments(SizeF)
Initially the appointments are all aranged in a single row and this method is called to resolve any overlapping appointment.
Declaration
protected virtual void ResolveOverlappingAppointments(SizeF availableSize)
Parameters
availableSize
Scroll(bool)
Scrolls the presenter with a single row up or down.
Declaration
public void Scroll(bool up)
Parameters
up
If [true] the presenter is scrolled up, otherwise it is scrolled down.
UpdateCellsCore()
Overrideable method called by UpdateCells().
Declaration
protected override void UpdateCellsCore()
Overrides