Class PooledUILayer
Provides the base class from which the classes that represent pooled UI layers are derived. This class has object pool that stores UI elements that are not currently in use. This way they can be reused.
Inherited Members
Namespace: Telerik.WinForms.Controls.Spreadsheet.Layers
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public abstract class PooledUILayer : UILayer, INamedObject
Constructors
PooledUILayer()
Properties
ReuseUIElementsWithoutRemovingFromVisualTree
Gets the value indicating if the UI element will be reused without removing from visual tree.
Declaration
protected virtual bool ReuseUIElementsWithoutRemovingFromVisualTree { get; }
Property Value
System.Boolean
The value indicating if the UI element will be reused without removing from visual tree. |
Methods
AddElementToPool(Object)
Adds the element to pool.
Declaration
protected void AddElementToPool(object element)
Parameters
System.Object
element
The element. |
CanRecycle(Object)
Determines whether this instance can recycle the specified element.
Declaration
protected virtual bool CanRecycle(object element)
Parameters
System.Object
element
The element. |
Returns
System.Boolean
|
Clear()
Clears this instance by removing all UI elements and returning them in the pool.
Declaration
public override void Clear()
Overrides
GetElementFromPool<T>()
Gets the element from pool.
Declaration
protected T GetElementFromPool<T>()
where T : class, new()
Returns
T
The desired element. |
Type Parameters
T
The type of the desired element. |
GetElementFromPool<T>(ViewportPaneType)
Gets the element from pool.
Declaration
protected T GetElementFromPool<T>(ViewportPaneType paneType)
where T : class, new()
Parameters
ViewportPaneType
paneType
|
Returns
T
The desired element. |
Type Parameters
T
The type of the desired element. |
OnUIUpdated()
Called when UI is updated.
Declaration
protected override void OnUIUpdated()
Overrides
ResetPooledElementProperties(Object)
Resets the pooled element properties.
Declaration
protected virtual void ResetPooledElementProperties(object element)
Parameters
System.Object
element
The element. |