Class WebMarkdownControl
WebView2-hosted control that renders chat conversations and log output as Markdown, supporting incremental streaming of assistant messages and log chunks into the embedded page.
Inheritance
WebMarkdownControl
Implements
Inherited Members
Namespace: Reportman.Designer
Assembly: Reportman.Designer.dll
Syntax
public class WebMarkdownControl : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Constructors
View SourceWebMarkdownControl()
Declaration
public WebMarkdownControl()
Properties
View SourceIsReady
Declaration
public bool IsReady { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceAppendLogChunk(string)
Declaration
public void AppendLogChunk(string chunk)
Parameters
| Type | Name | Description |
|---|---|---|
| string | chunk |
AppendLogChunkForKey(string, string)
Declaration
public void AppendLogChunkForKey(string key, string chunk)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | chunk |
AppendLogLine(string)
Declaration
public void AppendLogLine(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text |
AppendMessage(string, string)
Declaration
public void AppendMessage(string role, string markdown)
Parameters
| Type | Name | Description |
|---|---|---|
| string | role | |
| string | markdown |
AppendStreamingChunk(string, string, int)
Declaration
public void AppendStreamingChunk(string role, string chunk, int prefillPercent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | role | |
| string | chunk | |
| int | prefillPercent |
BeginStreaming(string)
Declaration
public void BeginStreaming(string role)
Parameters
| Type | Name | Description |
|---|---|---|
| string | role |
ClearAll()
Declaration
public void ClearAll()
EndLogChunk()
Declaration
public void EndLogChunk()
EndLogChunkForKey(string)
Declaration
public void EndLogChunkForKey(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key |
EnsureInitialized()
Declaration
public void EnsureInitialized()
FinishStreaming()
Declaration
public void FinishStreaming()
OnHandleCreated(EventArgs)
Declaration
protected override void OnHandleCreated(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| EventArgs | e |
Overrides
View SourceOnLoad(EventArgs)
Declaration
protected override void OnLoad(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| EventArgs | e |
Overrides
View SourceScrollToEnd()
Declaration
public void ScrollToEnd()