Table of Contents

Class TemplatedViewsPool

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public class TemplatedViewsPool : IDisposable
Inheritance
TemplatedViewsPool
Implements
Inherited Members
Extension Methods

Constructors

TemplatedViewsPool(Func<object>, int, Action<IDisposable>)

public TemplatedViewsPool(Func<object> initialViewModel, int maxSize, Action<IDisposable> dispose)

Parameters

initialViewModel Func<object>
maxSize int
dispose Action<IDisposable>

Fields

IsDisposing

public bool IsDisposing

Field Value

bool

Properties

CreateTemplate

public Func<object> CreateTemplate { get; protected set; }

Property Value

Func<object>

MaxDistinctHeights

public int MaxDistinctHeights { get; set; }

Property Value

int

MaxSize

public int MaxSize { get; set; }

Property Value

int

Size

public int Size { get; }

Property Value

int

Methods

ClearStandalonePool()

public void ClearStandalonePool()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Get(float, object)

public SkiaControl Get(float height = 0, object bindingContext = null)

Parameters

height float
bindingContext object

Returns

SkiaControl

GetStandalone()

public SkiaControl GetStandalone()

Returns

SkiaControl

InvalidateAll()

Invalidate all views held inside all internal pools so they will be re-measured on next use. Does not remove or modify pool contents; only marks controls as needing measure/layout.

public void InvalidateAll()

Reserve()

public void Reserve()

Return(SkiaControl, int)

public void Return(SkiaControl viewModel, int hKey)

Parameters

viewModel SkiaControl
hKey int

ReturnStandalone(SkiaControl)

public void ReturnStandalone(SkiaControl viewModel)

Parameters

viewModel SkiaControl