ClassCalendarTableElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CalendarTableElement : CalendarVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementCalendarVisualElementCalendarTableElement
Derived Classes:
Implements:
Inherited Members
Constructors
CalendarTableElement(CalendarVisualElement)
Declaration
protected CalendarTableElement(CalendarVisualElement owner)
Parameters
owner
CalendarTableElement(CalendarVisualElement, RadCalendar, CalendarView)
Declaration
protected CalendarTableElement(CalendarVisualElement owner, RadCalendar calendar, CalendarView view)
Parameters
owner
calendar
view
Fields
visualElements
Declaration
protected List<LightVisualElement> visualElements
Field Value
List<LightVisualElement>
Properties
AllowFadeAndAnimation
enable or disable animation on mouse click
Declaration
protected bool AllowFadeAndAnimation { get; set; }
Property Value
Calendar
Gets the parent calendar that the current view is assigned to.
Declaration
public override RadCalendar Calendar { get; }
Property Value
Overrides
CellHorizontalSpacing
Declaration
protected virtual int CellHorizontalSpacing { get; set; }
Property Value
CellVerticalSpacing
Declaration
protected virtual int CellVerticalSpacing { get; set; }
Property Value
Owner
Declaration
protected override CalendarVisualElement Owner { get; set; }
Property Value
Overrides
SelectedElement
Declaration
public LightVisualElement SelectedElement { get; set; }
Property Value
View
Exposes the top instance of CalendarView or its derived types.
vEvery CalendarView class handles the real calculation and rendering of RadCalendar's calendric information. The CalendarView has the CalendarViewCollection collection which contains all the sub views in case of multi view setup.
Declaration
public override CalendarView View { get; set; }
Property Value
Overrides
Methods
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateVisuals()
Declaration
protected virtual void CreateVisuals()
DisposeManagedResources()
Disposes of managed resources including cached images and SVG images when the element is being disposed.
Declaration
protected override void DisposeManagedResources()
Overrides
GetCellByDate(DateTime)
Declaration
public CalendarCellElement GetCellByDate(DateTime date)
Parameters
date
Returns
GetContentElement(int, int)
Declaration
protected virtual LightVisualElement GetContentElement(int row, int column)
Parameters
row
column
Returns
GetElement(int, int)
Declaration
protected virtual LightVisualElement GetElement(int row, int column)
Parameters
row
column
Returns
GetElementsByColumn(int)
Declaration
protected virtual List<CalendarCellElement> GetElementsByColumn(int column)
Parameters
column
Returns
List<CalendarCellElement>
GetElementsByRow(int)
Declaration
protected virtual List<CalendarCellElement> GetElementsByRow(int row)
Parameters
row
Returns
List<CalendarCellElement>
GetViewElements()
Declaration
protected virtual List<CalendarCellElement> GetViewElements()
Returns
List<CalendarCellElement>
Initialize()
Declaration
public virtual void Initialize()
InitializeChildren()
Declaration
protected virtual void InitializeChildren()
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.
OnBubbleEvent(RadElement, RoutedEventArgs)
Called when the bubble phase of a routed event occurs.
Declaration
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
Parameters
sender
The element that originally raised the event.
args
The routed event arguments.
Overrides
Recreate()
Declaration
protected virtual void Recreate()
RefreshSelectedDates()
Declaration
protected virtual void RefreshSelectedDates()
RefreshVisuals(bool)
Declaration
public override void RefreshVisuals(bool unconditional)
Parameters
unconditional
Overrides
RenderContent()
Declaration
protected virtual void RenderContent()
RenderContent(CalendarView)
Declaration
protected virtual void RenderContent(CalendarView view)
Parameters
view
RenderContentLevelOne(CalendarView)
Declaration
protected virtual void RenderContentLevelOne(CalendarView view)
Parameters
view
RenderContentLevelThree(CalendarView)
Declaration
protected virtual void RenderContentLevelThree(CalendarView view)
Parameters
view
RenderContentLevelTwo(CalendarView)
Declaration
protected virtual void RenderContentLevelTwo(CalendarView view)
Parameters
view
RenderContentLevelZero(CalendarView)
Declaration
protected virtual void RenderContentLevelZero(CalendarView view)
Parameters
view
ResetVisuals()
Declaration
public virtual void ResetVisuals()
SetBehaviorOnPropertyChange(string)
Declaration
protected virtual void SetBehaviorOnPropertyChange(string propertyName)
Parameters
propertyName
SetCalendarCell(LightVisualElement, DateTime)
Declaration
protected virtual void SetCalendarCell(LightVisualElement processedCell, DateTime processedDate)
Parameters
processedCell
processedDate