--- title: "How to: Enable Spell Checking in a Text Editing Control" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "spellchecking [WPF]" - "real-time spellchecking" - "TextBox control [WPF], real-time spellchecking" - "spelling checker [WPF]" - "checking spelling [WPF]" ms.assetid: 6f953d2b-67e8-4012-84ce-53c0e958da47 --- # How to: Enable Spell Checking in a Text Editing Control The following example shows how to enable real-time spell checking in a by using the property of the class. ## Example [!code-xaml[TextBoxMiscSnippets_snip#SpellCheckExampleWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/TextBoxMiscSnippets_snip/csharp/spellcheckexample.xaml#spellcheckexamplewholepage)] [!code-csharp[TextBoxMiscSnippets_procedural_snip#SpellCheckCodeExampleWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/TextBoxMiscSnippets_procedural_snip/CSharp/SpellCheckExample.cs#spellcheckcodeexamplewholepage)] [!code-vb[TextBoxMiscSnippets_procedural_snip#SpellCheckCodeExampleWholePage](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TextBoxMiscSnippets_procedural_snip/visualbasic/spellcheckexample.vb#spellcheckcodeexamplewholepage)] ## See also - [Use Spell Checking with a Context Menu](how-to-use-spell-checking-with-a-context-menu.md) - [TextBox Overview](textbox-overview.md) - [RichTextBox Overview](richtextbox-overview.md)