# Context Menu and Suggestion Controls

> The spell check menu of a WPF TextControl and its SpellCheckContextMenu property, GetMenuItems for a ContextMenu of your own, and where suggestions appear.

- **Product:** TX Spell .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Spell .NET for WPF > Overview > Components > Context Menu and Suggestion Controls
- **686 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/overview/components/context-menu/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/overview/components/context-menu/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/overview/components/context-menu/llms-full.txt

---

A right-click on an underlined word lets the user correct it without leaving the text. TX Spell .NET for WPF provides this context menu for TX Text Control, the menu items to build one of your own, and the lists that show suggestions in the spell check dialog. Here is what each of them is and where it is described in detail.

### The Built-In Context Menu

When a [TXSpellChecker](https://docs.textcontrol.com/tx-spell-dotnet-wpf/overview/components/txspellchecker/llms-full.txt) is connected to a `TextControl`, a right-click on a misspelled word opens a spell check menu instead of the usual context menu, without any code:

![A TextControl with red zigzag lines under misspelled words and the spell check context menu of the word "sampke": the suggestions sample, spake, smoke, samples and sampler, then Ignore, Ignore All and a disabled Add To Dictionary, then Spell Check Dialog and Options.](https://docs.textcontrol.com/assets/img/tx-spell-dotnet-wpf/textcontrol-context-menu.e3692bcd.webp)

The menu offers the suggestions for the word, the commands to ignore it or add it to a user dictionary, and the two dialogs. The [SpellCheckContextMenu](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/spellcheckcontextmenu-property/llms-full.txt) property of the `TextControl` switches it off or replaces it with a menu of your own.

### Menu Items for a Menu of Your Own

[GetMenuItems](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/getmenuitems-method/llms-full.txt) creates the spelling items for a misspelled word, ready to add to any `ContextMenu`: its suggestions, **Ignore**, **Ignore All** and **Add To Dictionary**. Each item carries out its action when it is clicked. An overload creates them for a word of a `RichTextBox` or a `TextBox`.

### Suggestion Lists

TX Spell .NET has no separate suggestion control to place in a window. Suggestions appear in the **Suggestions** list of the spell check dialog, at the top of the context menu, and in a control of your own that your code fills with [CreateSuggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/createsuggestions-method/llms-full.txt) or binds to the [SpellingCorrectionUIProvider](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider/llms-full.txt).

### Where to Read More

| Topic | Page |
|---|---|
| The built-in menu, a menu built with `GetMenuItems`, the item types, menus for a `RichTextBox` | [Context Menus](https://docs.textcontrol.com/tx-spell-dotnet-wpf/user-interface/context-menus/llms-full.txt) |
| The suggestion lists of the dialog and the menu, and suggestions in a `ListBox` | [Suggestion Controls](https://docs.textcontrol.com/tx-spell-dotnet-wpf/user-interface/suggestions/llms-full.txt) |
| A correction panel bound to the `SpellingCorrectionUIProvider` | [Spelling Correction Modes and UI Provider](https://docs.textcontrol.com/tx-spell-dotnet-wpf/spell-checking/correction-modes/llms-full.txt) |
| Suggestions in code | [Incorrect Words and Suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/spell-checking/suggestions/llms-full.txt) |
| A first application with the menu | [Correct Words from the Context Menu](https://docs.textcontrol.com/tx-spell-dotnet-wpf/getting-started/tx-text-control/context-menu/llms-full.txt) |

### Next Steps

- [Spell Check Dialog and Options Dialog](https://docs.textcontrol.com/tx-spell-dotnet-wpf/overview/components/dialogs/llms-full.txt): the dialogs the menu opens.
- [TXSpellChecker](https://docs.textcontrol.com/tx-spell-dotnet-wpf/overview/components/txspellchecker/llms-full.txt): the component behind the menu.
- [Context Menus](https://docs.textcontrol.com/tx-spell-dotnet-wpf/user-interface/context-menus/llms-full.txt): the menu in detail.

---

## Nearby

- **Previous:** [Spell Check Dialog and Options Dialog](https://docs.textcontrol.com/tx-spell-dotnet-wpf/overview/components/dialogs/llms-full.txt)
- **Next:** [TXSpell](https://docs.textcontrol.com/tx-spell-dotnet-wpf/overview/components/txspell/llms-full.txt)
