我正在使用 SmithHtmlEditor,它工作正常,但我们已经请求添加 WPF 原生的拼写检查<TextBox SpellCheck.IsEnabled=True />
我只是尝试将该行添加到控件中的 TextBox,但我没有得到波浪线以及带有建议的上下文菜单,可能是 WindowsFormsHost。我也愿意改变控制。
<Grid>
<TextBox x:Name="CodeEditor"
AcceptsReturn="True"
AcceptsTab="True"
AutoWordSelection="True"
VerticalScrollBarVisibility="Auto"
TextWrapping="Wrap"
SpellCheck.IsEnabled="True"/>
<WindowsFormsHost x:Name="BrowserHost">
<wf:WebBrowser x:Name="VisualEditor" />
</WindowsFormsHost>
</Grid>