TX Spell .NET for WPF

Spell Check Dialog and Options Dialog

Topic

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:

The Spelling dialog over a TextControl: the sentence with the misspelled word "sampke" in red, the suggestions, the buttons Ignore Once, Ignore All, Add To Dictionary, Change and Change All, the Suggestions Dictionary en_US.dic, Options and Cancel.

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

TopicPage
Every part and button of the spell check dialog, where it opens, how a check endsSpell Check Dialog
Rename, remove and add buttons, font, previewCustomizing the Spell Check Dialog
The tabs of the options dialog and the properties behind themOptions Dialog
The dialogs in other languagesLocalization and Resource Kit
A first application with the dialogOpen the Spell Check Dialog

Next Steps