ClassBaseVirtualizedContainer<T>
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
Type of the ViewElement
Syntax:
public abstract class BaseVirtualizedContainer<T> : LayoutPanel, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementLayoutPanelBaseVirtualizedContainer<T>
Derived Classes:
Implements:
Inherited Members
Constructors
BaseVirtualizedContainer()
Declaration
protected BaseVirtualizedContainer()
Properties
DataProvider
Gets or sets the associated data provider.
Declaration
public IEnumerable DataProvider { get; set; }
Property Value
The data provider.
DataProviderIsEmpty
Gets a value indicating whether the data provider is empty.
Declaration
protected bool DataProviderIsEmpty { get; }
Property Value
true if data provider is empty; otherwise, false.
ElementProvider
Gets or sets the associated element provider.
Declaration
public IVirtualizedElementProvider<T> ElementProvider { get; set; }
Property Value
IVirtualizedElementProvider<T>
The element provider.
Methods
BeginMeasure(SizeF)
Begins the measure.
EndMeasure()
Ends the measure.
FindCompatibleElement(int, T)
Finds the compatible element.
GetElementContext()
Gets the element context.
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
InsertElement(int, IVirtualizedElement<T>, T)
Inserts the element.
Declaration
protected virtual void InsertElement(int position, IVirtualizedElement<T> element, T data)
Parameters
position
The position.
element
The element.
data
T
The data.
IsItemVisible(T)
Determines whether the specified item is visible.
Declaration
protected virtual bool IsItemVisible(T data)
Parameters
data
T
The item.
Returns
true if item is visible; otherwise, false.
MeasureElement(IVirtualizedElement<T>)
Declaration
protected abstract bool MeasureElement(IVirtualizedElement<T> element)
Parameters
element
Returns
MeasureElements()
Declaration
protected virtual void MeasureElements()
MeasureOverride(SizeF)
Measures the space required by the RadElement
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.
RemoveElement(int)
Removes the element.
Declaration
protected virtual void RemoveElement(int position)
Parameters
position
The position.
UpdateElement(int, T)
Updates the element at concrete position
Declaration
protected virtual IVirtualizedElement<T> UpdateElement(int position, T data)
Parameters
position
The position.
data
T
The data.
Returns
UpdateItems()
Updates the items' layout
Declaration
public virtual void UpdateItems()