0

我正在使用 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>
4

1 回答 1

1

这仅对文本编辑器启用拼写检查。如果你进入代码模式,你会看到那里启用了拼写检查,但只有那里。WebBrowser 是 WinForms 组件,您不能以这种方式添加拼写检查。

于 2012-02-26T09:49:11.527 回答