ClassDayViewAllDayHeader
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
DayViewAllDayHeader(RadScheduler, SchedulerView, SchedulerDayViewElement)
Initializes a new instance of the DayViewAllDayHeader class.
Declaration
public DayViewAllDayHeader(RadScheduler scheduler, SchedulerView view, SchedulerDayViewElement dayViewElement)
Parameters
scheduler
The scheduler.
view
The view.
dayViewElement
The day view element.
Fields
HeaderHeightProperty
Declaration
public static RadProperty HeaderHeightProperty
Field Value
MaxHeaderHeightProperty
Declaration
public static RadProperty MaxHeaderHeightProperty
Field Value
Properties
DayViewElement
Gets the SchedulerDayViewElement that this header belongs to.
Declaration
public SchedulerDayViewElement DayViewElement { get; }
Property Value
Feedback
If there is an active drag operation and the visual feedback is currently inside the header, returns the visual feedback element. Otherwise returns null.
Declaration
public DragFeedbackElement Feedback { get; }
Property Value
HeaderHeight
Specifies the initial height of the header. This will also be the height of the appointments in case AutoSizeAppointments is [false]
MaxHeaderHeight
Specifies the maximum height of the header before the scrollbar appears.
ScrollBar
Gets the scrollbar of the header.
Declaration
public RadScrollBarElement ScrollBar { get; }
Property Value
Table
Gets the DayViewAppointmentsTable that is displayed in the same view as the header.
Declaration
public DayViewAppointmentsTable Table { get; }
Property Value
Methods
ArrangeAppointments(SizeF)
Arranges the appointments in the header.
Declaration
protected virtual void ArrangeAppointments(SizeF finalSize)
Parameters
finalSize
The size passed to the ArrangeOverride method.
ArrangeCells(SizeF)
Arranges the cell elements in the header.
Declaration
protected virtual void ArrangeCells(SizeF finalSize)
Parameters
finalSize
The size passed to the ArrangeOverride method.
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CalculateAppointmentBounds()
Calculates the size of the bounding rectangle of all appointment elements within the header.
Declaration
public virtual SizeF CalculateAppointmentBounds()
Returns
The size of the bounding rectangle.
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
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
GetFeedbackElementArrangeRectangle(SizeF)
Calculates and returns the arrange rectangle of the drag feedback element.
Declaration
protected virtual RectangleF GetFeedbackElementArrangeRectangle(SizeF availableSize)
Parameters
availableSize
The available size within the header.
Returns
The calculated arrange rectangle.
GetLeftCornerCell()
Gets the cell above the day view ruler.
Declaration
public SchedulerHeaderCellElement GetLeftCornerCell()
Returns
The cell.
GetRightCornerCell()
Gets the cell above the DayViewAppointmentsTable scrollbar.
Declaration
public SchedulerHeaderCellElement GetRightCornerCell()
Returns
The cell.
GetVerticalScrollValue()
Gets the vertical scroll offset of the all day area.
Declaration
protected virtual float GetVerticalScrollValue()
Returns
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.
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
SetCornerCellsVisibility(bool)
Shows or hides the corner cells (the ones above the rulers and the DayViewAppointmentsArea scrollbar).
Declaration
public void SetCornerCellsVisibility(bool visible)
Parameters
visible
[true] if corner cells should be visible, [false] otherwise.
UpdateCellsCore()
Overrideable method called by UpdateCells().
Declaration
protected override void UpdateCellsCore()
Overrides
UpdateScrollbar(float, float)
Updates the scrollbar range given the total height of the appointments and the available height in the header.