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
protected BaseVirtualizedContainer()
Properties
Gets or sets the associated data provider.
public IEnumerable DataProvider { get; set; }
The data provider.
Gets a value indicating whether the data provider is empty.
protected bool DataProviderIsEmpty { get; }
true if data provider is empty; otherwise, false.
Gets or sets the associated element provider.
public IVirtualizedElementProvider<T> ElementProvider { get; set; }
The element provider.
Methods
Ends the measure.
Gets the element context.
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.
protected override void InitializeFields()
Overrides:
Inserts the element.
protected virtual void InsertElement(int position, IVirtualizedElement<T> element, T data)
The position.
elementIVirtualizedElement<T>The element.
dataTThe data.
Determines whether the specified item is visible.
protected virtual bool IsItemVisible(T data)
The item.
Returns:true if item is visible; otherwise, false.
protected abstract bool MeasureElement(IVirtualizedElement<T> element)
protected virtual void MeasureElements()
Measures the space required by the RadElement
Used by the layout system.
protected override SizeF MeasureOverride(SizeF 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:
In this method call to the Measure method of each child must be made.
Removes the element.
Updates the element at concrete position
protected virtual IVirtualizedElement<T> UpdateElement(int position, T data)
The position.
dataTThe data.
Returns:Updates the items' layout
public virtual void UpdateItems()