有没有办法在WPF中使用澳大利亚英语词典

Pet*_*ter 8 wpf spell-checking richtextbox

所以在WPF中,我可以像这样声明一个富文本框

<RichTextBox Text="{Binding Text}" SpellCheck.IsEnabled="True" />
Run Code Online (Sandbox Code Playgroud)

通过一些奇迹,在拼写错误的单词下出现了一些奇怪的线条.

但所使用的方言是一个美国人,它有各种各样的差异,这对澳大利亚观众来说是不可接受的.

我知道我能做到这一点......

<RichTextBox Text="{Binding Text}" SpellCheck.IsEnabled="True" >
  <SpellCheck.CustomDictionaries>
    <!-- customwords.lex is included as a content file-->
    <sys:Uri>pack://application:,,,/customwords.lex</sys:Uri>
  </SpellCheck.CustomDictionaries>
</RichTextBox>
Run Code Online (Sandbox Code Playgroud)

并使用不同的单词填充customwords.lex.

#LID 1033
colour
summarising
Summarise
Organisation
maximise
etc...
Run Code Online (Sandbox Code Playgroud)

坦率地说,对于我来说,用一些额外的不同词语填写自定义词典并且它仍然不会突出在澳大利亚语境中错误的美国主义,这有点麻烦.

我四处寻找.Net语言包,如果我想要除了英语方言之外的任何其他语言,我想我会没事,但我没有英语(澳大利亚或英国)可以使用.

我是否只是关闭拼写检查?或者有没有办法在那里找到合适的词典.

Pet*_*ter 4

我找到了解决方案并创建了一种可以实现我想要的样式。现在,所有 RichTextBox 都经过适当的拼写检查。

<Style TargetType="RichTextBox">
    <Setter Property="SpellCheck.IsEnabled"  Value="True" />
    <Setter Property="Language"  Value="en-au" />
</Style>
Run Code Online (Sandbox Code Playgroud)