RenderStyle(MarkdownControl, Func<MarkdownStyle?>) Method

Definition

Assembly XenoAtom.Terminal.UI.Extensions.Markdown.dll

Installs tracked computed configuration for RenderStyle and returns the same instance.

[GeneratedCode("XenoAtom.Terminal.UI.SourceGen", "0.1.0")]
public static MarkdownControl RenderStyle(this MarkdownControl obj, Func<MarkdownStyle?> renderStyle)

Parameters

obj
MarkdownControl

The instance to configure.

renderStyle
Func<MarkdownStyle?>

A delegate that computes the current value.

Returns

MarkdownControl
The same instance for chaining.

Remarks

The delegate is re-evaluated during the visual's dynamic update pass, and bindable reads performed by the delegate are tracked directly.