Hi Hui,
Thanks for following up with my question.
No, my code did not use Nuget, and I did not use any special ContextMenu nor Suggestions.
I can reproduce the problem with the following standard steps:
- Create a C# WPF project using Microsoft Visual Studio Professional 2022 Version 17.7.4, and Microsoft .NET Framework Version 4.8.09037.
- Build a project using WPF Application C# Windows template. Targeting .NET Framework 4.8
- create a RichTextBox as showing below.
- Compile it, when the simple app is run in Windows 10, and after I type in "iwth", the spellcheck correctly suggests "with", only. But if I run the app in Windows 11, the spellcheck spits out a long list of suggestions but not "with". The suggestion list even goes so far as to include "withs". I just cannot figure it out. Why "withs" but not "with".
Thanks.
Bing
<Window x:Class="WpfApp1.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:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<RichTextBox Name="rtbNote" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" SpellCheck.IsEnabled="True" >
<FlowDocument Language="en">
<Paragraph>
<Run Text="RichTextBox"/>
</Paragraph>
</FlowDocument>
</RichTextBox>
</Grid>
</Window>