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
Identifies the property that sets the all-day header's base height; its default is the system menu height plus two pixels.
public static RadProperty HeaderHeightProperty
Identifies the all-day header height limit. Its default is ten times the base header height; zero disables the limit and scrollbar.
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 day and time-zone cells, all-day appointments, drag feedback, and the optional vertical scrollbar.
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 elements for appointments that the current day view classifies as all-day and converts their times to the view's default time zone.
protected override IEnumerable<AppointmentElement> CreateAppointmentElements()
IEnumerable<AppointmentElement>
The all-day appointment elements.
Overrides:
Creates time-zone corner cells, one drop-enabled cell per visible day, and the trailing scrollbar corner cell.
protected override IEnumerable<SchedulerCellElement> CreateCellElements()
IEnumerable<SchedulerCellElement>
The all-day header cells in display order.
Overrides:
Creates the vertical scrollbar used when the all-day appointments exceed the configured header height.
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.
Assigns the all-day header's theme class and clips drawing to its bounds.
protected override void InitializeFields()
Overrides:
Measures day cells and all-day appointments, then determines the header height and scrollbar range from the stacked appointment bounds and configured height limits.
protected override SizeF MeasureOverride(SizeF availableSize)
The size available to the header.
Returns:The available width and a calculated height no smaller than HeaderHeight.
Overrides:
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.
Updates existing time-zone and day cells, reinitializing them when there are too few children for the current day and corner cells.
protected override void UpdateCellsCore()
Overrides:
Updates the scrollbar range given the total height of the appointments and the available height in the header.