Spell Check Dialog and Options Dialog
TX Spell .NET for WPF has two dialogs built in, so that an application gets a complete spelling user interface without designing one. The spell check dialog corrects the misspelled words of a text one by one; the options dialog lets the user decide what is checked and with which dictionaries. Both belong to the TXSpellChecker component, and both can be adapted to your application.
The Spell Check Dialog
The spell check dialog, titled Spelling, shows each misspelled word in its sentence, with suggestions and the buttons to ignore, change or add the word to a user dictionary:

You don't create the dialog: the SpellCheckDialog property of the spell checker returns it, and its buttons, font and behavior can be changed in code before it opens. TX Text Control has a preconfigured spelling dialog of its own, which looks the same but can't be changed. Spell Check Dialog describes each part and button, and Checking on Demand compares the two dialogs.
The Options Dialog
The options dialog, titled Options, has up to four tabs: Spell Checking Options, Spell Checking Dictionaries, Hyphenation and Thesaurus. The user chooses the words to ignore, switches dictionaries on and off, and edits user dictionaries. It opens from Options... in the spell check dialog and the context menu, or from your code with OptionsDialog. Options Dialog describes the tabs and the properties behind them.
Languages
Both dialogs show their texts in English, and in German when the German satellite assembly of the package is deployed with the application; other languages need the Resource Kit.
Where to Read More
| Topic | Page |
|---|---|
| Every part and button of the spell check dialog, where it opens, how a check ends | Spell Check Dialog |
| Rename, remove and add buttons, font, preview | Customizing the Spell Check Dialog |
| The tabs of the options dialog and the properties behind them | Options Dialog |
| The dialogs in other languages | Localization and Resource Kit |
| A first application with the dialog | Open the Spell Check Dialog |
Next Steps
- Context Menu and Suggestion Controls: corrections without a dialog.
- TXSpellChecker: the component the dialogs belong to.
- Spell Check Dialog: the dialog in detail.