# rich-text-editor-notes

> Notes editor manages saved notes and edits selected HTML note content with save action.

**Framework:** maui  **Component:** RichTextEditor  **Variant:** notes

## 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-notes.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-notes/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.Notes"
             x:Class="MAUI.Controls.RichTextEditor.Notes.RichTextEditorView"
             x:DataType="model:RichTextEditorViewModel"
             Title="Rich Text Editor - Notes">
    <Grid ColumnDefinitions="260,*" ColumnSpacing="12" Padding="12">
        <Border Grid.Column="0" Stroke="LightGrey" StrokeShape="RoundRectangle 12" StrokeThickness="1" Padding="8">
            <Grid RowDefinitions="Auto,*,Auto" RowSpacing="8">
                <Label Text="My Notes" FontSize="18" FontAttributes="Bold" Padding="4,0" />
                <CollectionView Grid.Row="1" ItemsSource="{Binding Notes}" SelectedItem="{Binding SelectedNote, Mode=TwoWay}" SelectionMode="Single" SelectionChanged="OnNoteSelectedChanged">
                    <CollectionView.ItemTemplate>
                        <DataTemplate x:DataType="model:NoteModel">
                            <Border Padding="10" Margin="2" Stroke="Transparent" BackgroundColor="{AppThemeBinding Light=#F4F4F8, Dark=#2A2A2A}" StrokeShape="RoundRectangle 8">
                                <VerticalStackLayout Spacing="2">
                                    <Label Text="{Binding Title}" FontSize="14" FontAttributes="Bold" LineBreakMode="TailTruncation" />
                                    <Label Text="{Binding Author, StringFormat='by {0}'}" FontSize="11" Opacity="0.7" />
                                    <Label Text="{Binding CreatedAt, StringFormat='{0:MMM d, yyyy h:mm tt}'}" FontSize="10" Opacity="0.5" />
                                </VerticalStackLayout>
                            </Border>
                        </DataTemplate>
                    </CollectionView.ItemTemplate>
                </CollectionView>
                <HorizontalStackLayout Grid.Row="2" Spacing="8">
                    <Button Text="Add" Command="{Binding AddNoteCommand}" />
                    <Button Text="Delete" Command="{Binding DeleteNoteCommand}" />
                </HorizontalStackLayout>
            </Grid>
        </Border>
        <Border Grid.Column="1" Stroke="LightGrey" StrokeShape="RoundRectangle 12" StrokeThickness="1" Padding="0">
            <Grid RowDefinitions="Auto,*">
                <Grid Padding="12,8" ColumnDefinitions="*,Auto" BackgroundColor="{AppThemeBinding Light=#F8F8FB, Dark=#1F1F1F}">
                    <VerticalStackLayout Spacing="2">
                        <Label Text="{Binding SelectedTitle}" FontSize="16" FontAttributes="Bold" />
                        <Label Text="{Binding SelectedAuthor}" FontSize="12" Opacity="0.7" />
                    </VerticalStackLayout>
                    <Button Grid.Column="1" Text="Save" Command="{Binding SaveNoteCommand}" IsEnabled="{Binding HasSelectedNote}" />
                </Grid>
                <rte:SfRichTextEditor x:Name="NoteEditor" Grid.Row="1" TValue="HTML" Value="{Binding SelectedNote.HtmlContent, Mode=TwoWay}" Placeholder="Start typing your note..." 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="Separator" />
                        <rte:RichTextToolbarItem Type="Alignment" />
                        <rte:RichTextToolbarItem Type="ParagraphFormat" />
                        <rte:RichTextToolbarItem Type="Separator" />
                        <rte:RichTextToolbarItem Type="Hyperlink" />
                        <rte:RichTextToolbarItem Type="Image" />
                    </rte:SfRichTextEditor.ToolbarItems>
                </rte:SfRichTextEditor>
            </Grid>
        </Border>
    </Grid>
</ContentPage>

```

### src/components/rich-text-editor-notes/RichTextEditor.xaml.cs

```cs
namespace MAUI.Controls.RichTextEditor.Notes
{
    public partial class RichTextEditorView : ContentPage
    {
        private readonly RichTextEditorViewModel viewModel;

        public RichTextEditorView(RichTextEditorViewModel viewModel)
        {
            InitializeComponent();
            this.viewModel = viewModel;
            BindingContext = viewModel;
        }

        private void OnNoteSelectedChanged(object? sender, SelectionChangedEventArgs e)
        {
            viewModel.SelectNote(e.CurrentSelection.FirstOrDefault() as NoteModel);
        }
    }
}

```
