Tritium UI

TritiumRichTextEditor

Edit formatted text as HTML, with a toolbar for the styles most forms need.

TritiumRichTextEditor

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.

Ask Tritium

How-to help and product fit for FleetPro, Tritium UI, and Tritium Reporting.

Ask how to use a feature, or tell us your company, platforms, team size, and use case. Pricing and upgrades go to sales.

Product fit
Contact sales

Search the FAQ