Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions GettingStarted/GettingStarted/AppShell.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:GettingStarted"
Shell.FlyoutBehavior="Flyout"
Shell.FlyoutBehavior="Disabled"
Title="GettingStarted">

<ShellContent
Title="Home"
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />

Expand Down
52 changes: 50 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,50 @@
# maui-richtexteditor-samples
This repository contains sample for .NET MAUI SfRichTextEditor control
# Getting started with Syncfusion .NET MAUI Rich Text Editor control

## Overview
The .NET MAUI Rich Text Editor provides a simple yet powerful editor interface to compose richly formatted text with all the common formatting options like bold and italics. The Rich Text Editor is used to create messaging applications, email composers, blog editors, forum post text boxes, feedback and review sections, notes sections, and more. It has a variety of tools to edit and format rich content and returns valid HTML markup content.

## Creating an application with Rich Text Editor
1. Create a new .NET MAUI application in Visual Studio.
2. Syncfusion .NET MAUI components are available in [nuget.org.](https://www.nuget.org/)
3. To add SfRichTextEditor to your project, open the NuGet package manager in Visual Studio, search for `Syncfusion.Maui.RichTextEditor` and then install it.
4. Initialize the `SfRichTextEditor`.

#### XAML

```xml
<ContentPage . . .
xmlns:rte="clr-namespace:Syncfusion.Maui.RichTextEditor;assembly=Syncfusion.Maui.RichTextEditor">

<Grid>
<rte:SfRichTextEditor/>
</Grid>

</ContentPage>
```

#### C#

```C#
using Syncfusion.Maui.RichTextEditor;

public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
SfRichTextEditor richTextEditor = new SfRichTextEditor();
this.Content = richTextEditor;
}
}
```

### Output
<img width="1418" height="685" alt="rte" src="https://github.com/user-attachments/assets/10b43279-9686-4b16-a5c9-45869357923a" />

## Troubleshooting

### Path Too Long Exception

If you are facing a "Path too long" exception when building this example project, close Visual Studio and rename the repository to a shorter name before building the project.