TextArea is a multi-line text editor with soft wrapping by default.
new TextArea("Hello\nWorld");
To two-way bind to a State<string>:
var text = new State<string>("Hello\nWorld");
new TextArea().Text(text);
TextArea includes a built-in Find / Replace popup:
Ctrl+F: FindCtrl+H: ReplaceSee also SearchReplacePopup.
TextArea supports undo/redo:
Ctrl+Z: undoCtrl+R: redoReplace operations are undoable. Replace All is recorded as a single undo step.
See Undo/Redo.
TextArea implements IScrollable, so it integrates with ScrollViewer:
new ScrollViewer(new TextArea(longText));
When you bound the control (e.g. with .MaxHeight(...)) the scroll model provides an extent larger than the viewport,
and the viewer can render scrollbars and synchronize offsets.
HorizontalAlignment = Align.Start, VerticalAlignment = Align.StartTextAreaStyle controls colors, padding, and selection rendering.
See also: