Tracks decoration visuals so they can be reset and returned to an object pool when the layer refreshes.
Definition
Namespace:Telerik.WinForms.Documents.UI.Layers
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class PooledDecorationUILayerBase : DecorationUILayerBase, IUILayer
Inheritance: objectDecorationUILayerBasePooledDecorationUILayerBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes the layer with the object pool used for its decoration visuals.
public PooledDecorationUILayerBase(ObjectPool objPool)
The pool used to create and release visual elements.
Methods
Resets a visual's transient properties and returns it to the pool.
protected void AddElementToPool(object element)
The visual to reset and release.
Tracks a visual for later pooling and adds it to the decoration layer.
protected void AddPooledDecorationElement(UIElement element)
The decoration visual to track and display.
Clears the displayed decorations and returns tracked visuals to the object pool.
protected override void Clear()
Overrides:
Creates a visual instance from the pool.
protected T GetElementFromPool<T>() where T : class, new()
T
A pooled instance of the requested type.
Resets layer-specific properties before a pooled visual is reused.
protected abstract void ResetPooledElementProperties(object element)
The visual whose properties must be reset.