DXSpellChecker Class
Allows you to implement the spell checking functionality for the text controls in XAML.
Namespace: DevExpress.Xpf.SpellChecker
Assembly: DevExpress.Xpf.SpellChecker.v22.1.dll
NuGet Package: DevExpress.Wpf.SpellChecker
Declaration
[TargetType(typeof(TextEdit))]
[TargetType(typeof(TextBox))]
[TargetType(typeof(RichTextBox))]
[TargetType(typeof(MemoEdit))]
public class DXSpellChecker :
DXSpellCheckerBase<FrameworkElement>
Remarks
Use the DXSpellChecker instance to provide the spell checker behavior for the following text controls:
Example
<!--Add the following namespace declarations:
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:dxspch="http://schemas.devexpress.com/winfx/2008/xaml/spellchecker"-->
<dxe:TextEdit Text="An ideal dictionarie shouldbe comprised of all the the words in a given langauge">
<dxmvvm:Interaction.Behaviors>
<dxspch:DXSpellChecker x:Name="spChecker"
UnderlineColor="#FFAA3A37"
IgnoreEmails="False"
Culture="en-US"
ShowSpellCheckMenu="True"
CheckAsYouType="True"
SpellingFormType="Word">
<dxspch:DXSpellChecker.Dictionaries>
<dxspch:SpellCheckerISpellDictionary AlphabetUri="Dictionaries/EnglishAlphabet.txt"
Culture="en-US"
DictionaryUri="pack://siteoforigin:,,,/Dictionaries/american.xlg"
GrammarUri="pack://siteoforigin:,,,/Dictionaries/english.aff"/>
</dxspch:DXSpellChecker.Dictionaries>
</dxspch:DXSpellChecker>
</dxmvvm:Interaction.Behaviors>
</dxe:TextEdit>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DXSpellChecker class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.