DayViewAllDayHeader
Represent the area in SchedulerDayViewElement where all day appointments reside.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class DayViewAllDayHeader : SchedulerCellContainer, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerCellContainerDayViewAllDayHeader...
Implements:
Inherited Members
Constructors
Initializes a new instance of the DayViewAllDayHeader class.
public DayViewAllDayHeader(RadScheduler scheduler, SchedulerView view, SchedulerDayViewElement dayViewElement)
The scheduler.
viewSchedulerViewThe view.
dayViewElementSchedulerDayViewElementThe day view element.
Fields
public static RadProperty HeaderHeightProperty
public static RadProperty MaxHeaderHeightProperty
Properties
Gets the SchedulerDayViewElement that this header belongs to.
public SchedulerDayViewElement DayViewElement { get; }
If there is an active drag operation and the visual feedback is currently inside the header, returns the visual feedback element. Otherwise returns null.
public DragFeedbackElement Feedback { get; }
Specifies the initial height of the header. This will also be the height of the appointments in case AutoSizeAppointments is [false]
public int HeaderHeight { get; set; }
Specifies the maximum height of the header before the scrollbar appears.
public int MaxHeaderHeight { get; set; }
Gets the scrollbar of the header.
public RadScrollBarElement ScrollBar { get; }
Gets the DayViewAppointmentsTable that is displayed in the same view as the header.
public DayViewAppointmentsTable Table { get; }
Methods
Arranges the appointments in the header.
protected virtual void ArrangeAppointments(SizeF finalSize)
The size passed to the ArrangeOverride method.
Arranges the cell elements in the header.
protected virtual void ArrangeCells(SizeF finalSize)
The size passed to the ArrangeOverride method.
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Calculates the size of the bounding rectangle of all appointment elements within the header.
public virtual SizeF CalculateAppointmentBounds()
The size of the bounding rectangle.
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:
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Calculates and returns the arrange rectangle of the drag feedback element.
protected virtual RectangleF GetFeedbackElementArrangeRectangle(SizeF availableSize)
The available size within the header.
Returns:The calculated arrange rectangle.
Gets the cell above the day view ruler.
public SchedulerHeaderCellElement GetLeftCornerCell()
The cell.
Gets the cell above the DayViewAppointmentsTable scrollbar.
public SchedulerHeaderCellElement GetRightCornerCell()
The cell.
Gets the vertical scroll offset of the all day area.
protected virtual float GetVerticalScrollValue()
If the scheduler is grouped, returns the value of the scrollbar in the last child view, otherwise returns the value of the ScrollBar if current header.
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.
Shows or hides the corner cells (the ones above the rulers and the DayViewAppointmentsArea scrollbar).
public void SetCornerCellsVisibility(bool visible)
[true] if corner cells should be visible, [false] otherwise.
Overrideable method called by UpdateCells().
protected override void UpdateCellsCore()
Overrides:
Updates the scrollbar range given the total height of the appointments and the available height in the header.