# sfrichtextboxadv-document-editor

> Full-featured document editor with SfRichTextBoxAdv, formatting toolbar, and document management.

**Framework:** wpf  **Component:** RichTextEditor  **Variant:** document-editor

## 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/wpf/sfrichtextboxadv-document-editor.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.SfRichTextBoxAdv.WPF
```

**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/sfrichtextboxadv-document-editor/SfRichTextBoxAdv.xaml

```xaml
<UserControl x:Class="syncfusion.richtextboxadvdemos.wpf.DocumentEditor.SfRichTextBoxAdv"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Syncfusion="http://schemas.syncfusion.com/wpf"
        xmlns:RichTextBoxAdv="clr-namespace:Syncfusion.Windows.Controls.RichTextBoxAdv;assembly=Syncfusion.SfRichTextBoxAdv.Wpf"
        x:Name="ribbonWindow" Unloaded="OnSampleUnloaded">

    <UserControl.Resources>

    </UserControl.Resources>

    <Grid x:Name="Root">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Syncfusion:SfRichTextRibbon x:Name="richTextRibbon" SnapsToDevicePixels="True" DataContext="{Binding ElementName=richTextBoxAdv}"/>
        <Syncfusion:SfRichTextBoxAdv x:Name="richTextBoxAdv" Grid.Row="1" DocumentTitle="Getting Started" LayoutType="Pages" AcceptsTab="True" AllowDrop="True">
            <Syncfusion:SfRichTextBoxAdv.SpellChecker>
                <RichTextBoxAdv:SpellChecker IsEnabled="True"/>
            </Syncfusion:SfRichTextBoxAdv.SpellChecker>
        </Syncfusion:SfRichTextBoxAdv>
        <Syncfusion:RibbonStatusBar Grid.Row="2" Height="25">
            <StackPanel HorizontalAlignment="Left" Orientation="Horizontal" VerticalAlignment="Center">
                <TextBlock Margin="10,0,0,0" FontSize="12" VerticalAlignment="Center"
                           x:Name="PageCountText" Text="Page : 1 of 1"
                           Foreground="{Binding Path=Foreground, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Syncfusion:RibbonStatusBar}}}"/>
            </StackPanel>
        </Syncfusion:RibbonStatusBar>
    </Grid>
</UserControl>
```
