DXSpellChecker Class
Allows you to implement the spell checking functionality for the text controls in XAML.
Namespace: DevExpress.Xpf.SpellChecker
Assembly: DevExpress.Xpf.SpellChecker.v25.2.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 add the spell checker behavior to the following text controls:
Refer to the following article for information on how to enable spell checker behavior in these controls: Configure Spell-Checking Behavior
<!--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>
Handle DXSpellChecker Events
Text editors that support the DXSpellChecker behavior do not have the property to obtain the spell checker. If your scenario requires tracking the checking process or managing user interaction, use the standalone SpellChecker object or the MVVM approach. Refer to the following topic for more information: How to: Use WPF Spell Checker in MVVM Applications