CachingExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for configuring per-widget render-cache hints.
csharp
public static class CachingExtensionsInheritance
Object → CachingExtensions
Methods
Cached<TWidget>(TWidget, Func<RenderCacheContext, bool>)
Adds a cache-eligibility predicate to this widget.
Parameters:
widget(<TWidget>): The widget to configure.predicate(Func<RenderCacheContext, Boolean>): Predicate evaluated against the reconciled node and current render context. Returningfalseforces a cache miss for that subtree on the current frame.
Returns: <TWidget>
A new widget with the cache predicate set.
csharp
public static TWidget Cached<TWidget>(this TWidget widget, Func<RenderCacheContext, bool> predicate) where TWidget : Hex1bWidget