2014-01-14 57 views
0

要輸入文本,我使用RichTextBox。爲什麼不正確地添加сustomise字典?

<RichTextBox x:Name="FlowDocumentViewer" Language="en"/> 

我打開拼寫檢查器。爲了支持俄語,我添加了自定義字典。

try 
{ 
    this.FlowDocumentViewer.SpellCheck.SpellingReform = SpellingReform.PreAndPostreform; 
    Uri uri = new Uri("Resources/Russian.lex", UriKind.Relative); 
    if (!this.FlowDocumentViewer.SpellCheck.CustomDictionaries.Contains(uri)) 
    { 
     this.FlowDocumentViewer.SpellCheck.CustomDictionaries.Add(uri); 
    } 
    this.FlowDocumentViewer.SpellCheck.IsEnabled = true; 
} 
catch (Exception ex) 
{ 
    MessageBox.Show(ex.Message); 
} 

但它工作不正常。

enter image description here

我在做什麼錯?

+0

那究竟是什麼錯誤? – athabaska

+1

單詞「союз」在字典和拼寫檢查器中,他的筆記不正確。並提供替換不在字典中的單詞。 – Ateist

回答

1

正確答案:字典應該用UTF-16編碼。

相關問題