ClassPooledUILayer
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.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Layers
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public abstract class PooledUILayer : UILayer, INamedObject
Inheritance: objectUILayerPooledUILayer
Derived Classes:
Implements:
Inherited Members
Constructors
PooledUILayer()
Initializes a new instance of the PooledUILayer class.
Declaration
protected 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
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
element
The element.
CanRecycle(object)
Determines whether this instance can recycle the specified element.
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.
GetElementFromPool<T>(ViewportPaneType)
Gets the element from pool.
Declaration
protected T GetElementFromPool<T>(ViewportPaneType paneType) where T : class, new()
Parameters
paneType
ViewportPaneType
Returns
T
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
element
The element.