Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HunspellDictionaryExtension Class

An extension instance implementing the HunspellDictionary functionality in XAML.

Namespace: DevExpress.Xpf.SpellChecker

Assembly: DevExpress.Xpf.SpellChecker.v24.2.dll

NuGet Package: DevExpress.Wpf.SpellChecker

#Declaration

public class HunspellDictionaryExtension :
    DictionaryMarkupExtension

#Remarks

Use the HunspellDictionaryExtension instance to add a custom dictionary in XAML using the DXSpellChecker or RichEditSpellChecker behavior.

The HunspellDictionaryExtension instance requires specifying the dictionary file (the HunspellDictionaryExtension.DictionaryUri property) and an affix file (the HunspellDictionaryExtension.GrammarUri property). The dictionary file contains only the root forms of words with information about morphological affix classes to combine with the roots. The affix file contains lists of affixes along with their context restrictions and effects. The affix file also serves as a settings file for the dictionary, containing all meta-data and settings.

Note

We bear no responsibility for the content and availability of Hunspell dictionaries and affix files, since they are part of Hunspellproject (for more information visit the Hunspell web site.

#Example

<dxspch:HunspellDictionary Culture="en-US" 
                           DictionaryUri="pack://siteoforigin:,,,/Dictionaries/Hunspell/en-US/en-US.dic" 
                        GrammarUri="pack://siteoforigin:,,,/Dictionaries/Hunspell/en-US/en-US.aff"/>

#Inheritance

Object
MarkupExtension
DevExpress.Xpf.SpellChecker.DictionaryMarkupExtension
HunspellDictionaryExtension
See Also