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.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Layers

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class PooledUILayer : UILayer, INamedObject

Inheritance: objectUILayerPooledUILayer

Derived Classes: WorksheetUILayerBase

Implements: INamedObject

Inherited Members UILayer.UpdateUI()UILayer.UpdateUI(UIUpdateContext)UILayer.OnOwnerChanged(IUILayerOwner, IUILayerOwner)UILayer.UpdateUIOverride(UIUpdateContext)UILayer.Translate(Point, ViewportPaneType, UIUpdateContext)UILayer.Translate(Rect, ViewportPaneType, UIUpdateContext)UILayer.TranslateAndScale(UIUpdateContext)UILayer.IsElementVisible(UIElement)UILayer.GetElementVisibility(UIElement)UILayer.SetElementVisibility(UIElement, Visibility)UILayer.GetAddedUIElements(ViewportPaneType)UILayer.UIUpdateContextCacheUILayer.ContainerManagerUILayer.OwnerUILayer.Name

Constructors

PooledUILayer()

Initializes a new instance of the PooledUILayer class.

Declaration

cs-api-definition
protected PooledUILayer()

Properties

ReuseUIElementsWithoutRemovingFromVisualTree

Gets the value indicating if the UI element will be reused without removing from visual tree.

Declaration

cs-api-definition
protected virtual bool ReuseUIElementsWithoutRemovingFromVisualTree { get; }

Property Value

bool

The value indicating if the UI element will be reused without removing from visual tree.

Methods

AddElementToPool(object)

Adds the element to pool.

Declaration

cs-api-definition
protected void AddElementToPool(object element)

Parameters

element

object

The element.

CanRecycle(object)

Determines whether this instance can recycle the specified element.

Declaration

cs-api-definition
protected virtual bool CanRecycle(object element)

Parameters

element

object

The element.

Returns

bool

Tru if can recycle the element.

Clear()

Clears this instance by removing all UI elements and returning them in the pool.

Declaration

cs-api-definition
public override void Clear()

Overrides UILayer.Clear()

GetElementFromPool<T>()

Gets the element from pool.

Declaration

cs-api-definition
protected T GetElementFromPool<T>() where T : class, new()

Returns

T

The desired element.

GetElementFromPool<T>(ViewportPaneType)

Gets the element from pool.

Declaration

cs-api-definition
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

cs-api-definition
protected override void OnUIUpdated()

Overrides UILayer.OnUIUpdated()

ResetPooledElementProperties(object)

Resets the pooled element properties.

Declaration

cs-api-definition
protected virtual void ResetPooledElementProperties(object element)

Parameters

element

object

The element.