During text entry and editing, spell checking informs the user that a word is misspelled by highlighting it with a red squiggle and providing a way for the user to correct the misspelling.
- Use spell checking to help users as they enter words or sentences into text input controls. Spell checking works with touch, mouse, and keyboard input.
- Don’t use spell checking where a word is not likely to be in the dictionary or where users wouldn’t value spell checking. For example, don’t turn it on for input boxes of passwords, telephone numbers, or names. (Spell checking is disabled by default for these controls.) Telephone numbers, passwords, and names are rarely in the dictionary, so spell checking them doesn't do any good and might be distracting.
- Don’t disable spell checking just because the current spell checking engine doesn't support your app language. When the spell checker doesn't support a language, it doesn't do anything, so there's no harm in leaving the option on. Also, some users might use an Input Method Editor (IME) to enter another language into your app, and that language might be supported. For example, when building a Chinese app, although the spell checking engine doesn’t recognize Chinese now, don’t turn spell checking off. The user may switch to an English IME and type English into the app; if spell checking is enabled, the English will get spell checked.
Windows Store apps provide a built-in spell checker for multiline and single text input boxes, and elements that have their contentEditable property set to true. Here's an example of the built-in spell checker:
Use spell checking with text input controls for these two purposes:
To auto-correct misspellings
The spell checking engine automatically corrects misspelled words when it’s confident about the correction. For example, the engine automatically changes "teh" to "the."
To show alternate spellings
When the spell checking engine is not confident about the corrections, it adds a red line under the misspelled word and displays the alternates in a context menu when you tap or right-click the word.
For XAML TextBox controls, spell checking is turned off by default. You can turn it on by setting the IsSpellCheckEnabled property to true.
- For designers
- Guidelines for text input
- Guidelines for text and typography
- For developers (HTML)
- spellcheck property
- input type=text
- For developers (XAML)
- TextBox.IsSpellCheckEnabled property
- TextBox class