Class RichTextWidgetSource
- Namespace
- RichEdit.Maui
- Assembly
- RichEdit.Maui.dll
Owns a replaceable widget set with lazy view creation and revision-checked publication.
public sealed class RichTextWidgetSource : IDisposable
- Inheritance
-
RichTextWidgetSource
- Implements
- Inherited Members
Remarks
Callbacks run on the UI thread. Offscreen views are detached before recycling; applications may retain them in a bounded pool. Unchanged stable IDs retain their live views and measured sizes. Document replacement clears handles; publish fresh data for the new document.
Methods
BeginUpdate()
Supersedes earlier computations from this producer, including requests for unchanged source text.
public RichTextWidgetRequest BeginUpdate()
Returns
Dispose()
Removes this producer's widgets and recycles created views without changing source or history.
public void Dispose()
TryPublish(RichTextWidgetRequest, IEnumerable<RichTextWidget>)
Publishes a complete producer-owned set when its document revision and request generation are still current.
public bool TryPublish(RichTextWidgetRequest request, IEnumerable<RichTextWidget> widgets)
Parameters
requestRichTextWidgetRequestwidgetsIEnumerable<RichTextWidget>
Returns
Remarks
Validate and copy descriptor data before updating handles. Factories are not invoked by publication.