# rich-text-editor-email-formatting

> Rich text editor composes email content with address headers and formatting toolbar.

**Framework:** maui  **Component:** RichTextEditor  **Variant:** email-formatting

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/maui/rich-text-editor-email-formatting.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Maui.RichTextEditor
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/rich-text-editor-email-formatting/RichTextEditor.xaml

```xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:rte="clr-namespace:Syncfusion.Maui.RichTextEditor;assembly=Syncfusion.Maui.RichTextEditor"
             xmlns:model="clr-namespace:MAUI.Controls.RichTextEditor.EmailFormatting"
             x:Class="MAUI.Controls.RichTextEditor.EmailFormatting.RichTextEditorView"
             x:DataType="model:RichTextEditorViewModel"
             Title="Rich Text Editor - Email Formatting">
    <Grid Padding="12" RowDefinitions="Auto,*,Auto" RowSpacing="10">
        <Border Padding="12" Stroke="LightGrey" StrokeShape="RoundRectangle 12" Grid.Row="0">
            <Grid ColumnDefinitions="Auto,*" RowDefinitions="Auto,Auto,Auto" ColumnSpacing="12" RowSpacing="8">
                <Label Text="To" VerticalOptions="Center" />
                <Entry Grid.Column="1" Text="{Binding Recipient}" Placeholder="Recipient email" />
                <Label Grid.Row="1" Text="From" VerticalOptions="Center" />
                <Entry Grid.Row="1" Grid.Column="1" Text="{Binding Sender}" Placeholder="Your email" />
                <Label Grid.Row="2" Text="Subject" VerticalOptions="Center" />
                <Entry Grid.Row="2" Grid.Column="1" Text="{Binding Subject}" Placeholder="Subject" />
            </Grid>
        </Border>
        <Border Grid.Row="1" Stroke="LightGrey" StrokeShape="RoundRectangle 12" Padding="0">
            <rte:SfRichTextEditor TValue="HTML" Value="{Binding MailContent, Mode=TwoWay}" Placeholder="Compose your message..." ToolbarPosition="Bottom" VerticalOptions="Fill">
                <rte:SfRichTextEditor.ToolbarItems>
                    <rte:RichTextToolbarItem Type="Bold" />
                    <rte:RichTextToolbarItem Type="Italic" />
                    <rte:RichTextToolbarItem Type="Underline" />
                    <rte:RichTextToolbarItem Type="Separator" />
                    <rte:RichTextToolbarItem Type="FontFamily" />
                    <rte:RichTextToolbarItem Type="FontSize" />
                    <rte:RichTextToolbarItem Type="Separator" />
                    <rte:RichTextToolbarItem Type="BulletList" />
                    <rte:RichTextToolbarItem Type="NumberList" />
                    <rte:RichTextToolbarItem Type="Alignment" />
                    <rte:RichTextToolbarItem Type="Hyperlink" />
                    <rte:RichTextToolbarItem Type="Image" />
                </rte:SfRichTextEditor.ToolbarItems>
            </rte:SfRichTextEditor>
        </Border>
        <Grid Grid.Row="2" ColumnDefinitions="*,Auto,Auto" ColumnSpacing="8">
            <Label Text="{Binding StatusMessage}" VerticalTextAlignment="Center" Opacity="0.75" />
            <Button Grid.Column="1" Text="Discard" Command="{Binding DiscardCommand}" />
            <Button Grid.Column="2" Text="Send" Command="{Binding SendCommand}" />
        </Grid>
    </Grid>
</ContentPage>

```

### src/components/rich-text-editor-email-formatting/RichTextEditor.xaml.cs

```cs
namespace MAUI.Controls.RichTextEditor.EmailFormatting
{
    public partial class RichTextEditorView : ContentPage
    {
        public RichTextEditorView(RichTextEditorViewModel viewModel)
        {
            InitializeComponent();
            BindingContext = viewModel;
        }
    }
}

```
