Class TemplatedViewsPool
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
initialViewModelFunc<object>maxSizeintdisposeAction<IDisposable>
Fields
IsDisposing
public bool IsDisposing
Field Value
Properties
CreateTemplate
public Func<object> CreateTemplate { get; protected set; }
Property Value
MaxDistinctHeights
public int MaxDistinctHeights { get; set; }
Property Value
MaxSize
public int MaxSize { get; set; }
Property Value
Size
public int Size { get; }
Property Value
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
disposingbool
Get(float, object)
public SkiaControl Get(float height = 0, object bindingContext = null)
Parameters
Returns
GetStandalone()
public SkiaControl GetStandalone()
Returns
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
viewModelSkiaControlhKeyint
ReturnStandalone(SkiaControl)
public void ReturnStandalone(SkiaControl viewModel)
Parameters
viewModelSkiaControl