0
我正在使用SmithHtmlEditor,它工作正常,但我们有请求添加WPF原生的拼写检查<TextBox SpellCheck.IsEnabled=True />
我只是试图将该行添加到控件中的TextBox但我没有得到带有建议的波浪线和上下文菜单,可能是WindowsFormsHost。我也愿意改变控制。允许SmithHtmlEditor进行拼写检查
<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>
您的代码正在对TextBox启用拼写检查,而不是WindowsFormsHost。这是打算? – 2011-12-13 18:59:26