Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The AI-powered WPF Text Editor is a multiline editor enhanced with AI-assisted sentence completion. It can display suggestions inline over the text or in an unintrusive pop-up, reducing typing effort and improving productivity.

Wpf Smarttexteditor Overview image


WPF Smart Text Editor code example

Get started with the WPF Smart Text Editor control using a few simple lines of XAML and C# code, as demonstrated below.

<Window x:Class="SmartTextEditor.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:SmartTextEditor"
        xmlns:sync="http://schemas.syncfusion.com/wpf"
        xmlns:smartTextEditor="clr-namespace:Syncfusion.UI.Xaml.SmartComponents;assembly=Syncfusion.SfSmartComponents.Wpf"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800" WindowStartupLocation="CenterScreen">
    <Grid>    
        <smartTextEditor:SfSmartTextEditor x:Name="SmartTextArea"
                                           Placeholder="Write your response...."
                                           UserRole="{Binding SelectedRole.Text}"
                                           UserPhrases="{Binding SelectedRole.SuggestionPhrases}"
                                           Height="100"
                                           Width="350" />
    </Grid>
</Window>

Intelligent autocomplete

The AI-powered Text Editor extends beyond basic word suggestions by predicting complete sentences based on user input. This AI-based autocomplete minimizes typing effort through accurate, context-aware suggestions. Suggestions are generated for the active line and appear only when the caret is positioned at the end of the text and the maximum length limit is not exceeded. If no AI suggestion is available, it smoothly falls back to predefined user phrases to ensure a seamless input experience.


User role

Define the tone and context of AI suggestions by configuring the user role.

Examples:

  • A customer service agent responding to client inquiries.
  • A project manager writing a status update.
  • A developer replying to GitHub issues.

User phrases

Allow users to view the editor with predefined expressions that represent commonly used content. These phrases serve as a fallback when the AI provides no suggestion and help deliver quick completions for frequently used sentences.

For example:

  • “Thank you for contacting us.”
  • “Please let me know if you have any further questions.”

Suggestion display modes

The AI-powered Text Editor offers two modes for presenting completions while typing:

Wpf Smarttexteditor Inline image

Inline suggestion mode

Show suggestions directly within the text.

Wpf Smarttexteditor Popup image

Pop-up suggestion mode

Display suggestions in a pop-up window.


Keyboard and touch interactions

To accept a suggestion, users can use the Tab key or the right arrow key. On touch devices, simply tap the suggestion to insert it.


Customization

Improve the look and feel of the AI-powered Text Editor by enabling customization of its visual components. This includes controls for text styling such as font size, font family, and text attributes, as well as autoscaling to enhance readability. Users can also customize text colors for inline and pop-up suggestions, adjust placeholder text color, and style the background of suggestion pop-ups to align with their preferred theme or brand identity.

Wpf Smarttexteditor Customization image


145+ WPF CONTROLS

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.
Here are some of their experiences.

See Real Success Stories

Developers around the world trust Syncfusion’s Essential Studio to simplify complex projects and speed up delivery. With a vast library of UI controls, powerful SDKs, and reliable support, Essential Studio helps teams build enterprise-ready applications with confidence.

Read Our Customer Stories


Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Syncfusion WPF Resources

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Up arrow icon