#943 – Turning on Spell Checking within a TextBox

You can enable automatic spell checking in a TextBox control by setting the SpellCheck.IsEnabled property to true.

        <TextBox Margin="5" Height="100"

When spell-checking is enabled, words that are misspelled are underlined with a red squiggly line.



When the spell-checker flags a spelling error, you can right-click on the red line to see a menu of suggested corrections.



Selecting one of the suggestions will cause the misspelled text to be replaced with the correction.



About Sean
Software developer in the Twin Cities area, passionate about .NET technologies. Equally passionate about my own personal projects related to family history and preservation of family stories and photos.

One Response to #943 – Turning on Spell Checking within a TextBox

  1. Pingback: #949 – Add a Custom Dictionary for Spell Checking in a TextBox | 2,000 Things You Should Know About WPF

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: