Tritium UI
TritiumRichTextEditor
Edit formatted text as HTML, with a toolbar for the styles most forms need.
Key features
- Bind Html two-way, and read the plain Text alongside it.
- Apply bold, italic, underline, headings, paragraphs, and bulleted or numbered lists.
- Insert and remove links.
- Show or hide the toolbar, and switch to read-only.
- Show a placeholder when the document is empty.
- Raise HtmlChanged after an edit.
- Set the document from code with SetHtmlAsync.
Platforms
Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).
Main API
- Html . The document markup, two-way.
- Text . The plain-text view of the document, two-way.
- AreToolbarEnabled . Shows or hides the formatting toolbar.
- IsReadOnly . Prevents editing; AreRichTextEnabled also disables commands.
Basic example
Declare this namespace on the page.
xmlns:richtext="clr-namespace:Tritium.Maui.RichText;assembly=Tritium.Maui.RichText"
<richtext:TritiumRichTextEditor Html="{Binding BodyHtml}"
AreToolbarEnabled="True"
Placeholder="Write a note" /> Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.